A calculator for different types of mortgage loans, created for FinTech classes 2020.
To use calculator, type in bash console:
python calculator.py path/to/input.json
Calculator accepts input in json
. Example:
{
"amount": 500000,
"term_in_months": 300,
"interest_rate": 0.037,
"installment_method": "fixed",
"commission_method": "not_include"
}
There are 6 possible arguments:
amount
- floatterm_in_months
- integerinterest_rate
- floatinstallment_method
-fixed
ordecreasing
commission_method
-not_include
orincreases_amount
ordecreases_amount
commission_rate
- float
Each argument, if not provided, has default value. Default values are as follows:
{
"amount": 200000,
"term_in_months": 240,
"interest_rate": 0.05,
"installment_method": "fixed",
"commission_method": "not_include",
"commission_rate": 0.015
}