Program that allows the user to access two different financial calculators: an investment calculator and a home loan repayment calculator for a small financial company
You will need the following software to run the financial calculator:
To get started with the financial calculators, follow these steps:
- Clone the repository:
git clone https://github.com/resole79/finance_calculator.git- Run the finance_calculator.py file:
python3 finance_calculator.pyHow program present
User selects βinvestmentβ
Ask the user to input:
- The amount of money that they are depositing.
- The interest rate (as a percentage).
- The number of years they plan on investing.
- Then ask the user to input if they want βsimpleβ or βcompoundβ interest
The total amount when **simple interest** is applied is calculated as follows: *π΄ = π(1 + π Γ π‘)*
The total amount when **compound interest** is applied is calculated asfollows: *π΄ = π(1 + π)^π‘*
In the formula above:
- βrβ is the interest entered above divided by 100, e.g. if 8% is entered, then r is 0.08.
- βPβ is the amount that the user deposits.
- βtβ is the number of years that the money is being invested.
- βAβ is the total amount once the interest has been applied.
User selects βbondβ
Ask the user to input:
- The present value of the house.
- The interest rate.
- The number of months they plan to take to repay the bond.
The amount that a person will have to be repaid on a home loan each
month is calculated as follows: *πππππ¦ππππ‘ = (i * P)/(1 - (1 + i)^(-n))*
In the formula above:
- βPβ is the present value of the house.
- βiβ is the monthly interest rate, calculated by dividing the annual interest rate by 12.
- βnβ is the number of months over which the bond will be repaid.
Author : Emilio Reforgiato (resole79)