Shows how much you will have to pay if you take a mortgage, provided much money is spent on interest and on the principal.
For example, you take 4 000 000, interest rate is 2.85 percent per year, time - 20 years. The output is
month: 239 remaining amount: 21833 paid amount: 5230455 balance amount: 21781 interest amount: 104 balance sum: 3978167 interest sum: 1252288
which means that you spend 5 230 455, total interest paid is 1 252 288, monthly payment is 21885.
How to calculate monthly payment? https://moezhile.ru/kreditovanie/ezhemesyachnyj-platezh.html#i-2
Virtual environments link
https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/26/python-virtual-env/
- If virtual environment is not created, create it
virtualenv mortgage_example_venv
- Navigate there and activate it
cd mortgage_example_venv;
cd Scripts
activate
- After you finish working, deactivate it.
cd mortgage_example_venv;
cd Scripts
deactivate
- Run
./app/mortgage_example.py