- Welcome to the Financial Calculator! This tool helps you calculate the interest on your investments and the monthly repayments on a home loan. Follow the simple steps below to get started.
-
Investment Calculator:
-
Calculates the future value of an investment based on simple or compound interest.
-
User inputs: deposit amount, interest rate, number of years, and type of interest.
-
Calculates the monthly repayment amount for a home loan.
-
User inputs: present value of the house, interest rate, and number of months for repayment.
-
How to Use
-
Clone the Repository:
-
Open your terminal or command prompt.
-
Run the following command to clone the repository:
- Change into the project directory:
- bash
- Copy code
- cd financial-calculator
- Run the Script:
Run the Python script: bash Copy code python financial_calculator.py Choose an Option:
- You will be prompted to choose either 'investment' or 'bond':
- Choose either 'investment' or 'bond' from the menu below to proceed:
- investment - to calculate the amount of interest you'll earn on your investment bond - to calculate the amount you'll have to pay on a home loan Input Required Information: Based on your choice, input the required information when prompted.
- Run the script and choose 'investment':
Choose either 'investment' or 'bond' from the menu below to proceed: investment - to calculate the amount of interest you'll earn on your investment bond - to calculate the amount you'll have to pay on a home loan investment Follow the prompts:
Enter the amount of money you are depositing: 1000 Enter the interest rate (as a percentage): 5 Enter the number of years you plan on investing for: 10 Do you want 'simple' or 'compound' interest? compound The calculator will display the result:
- Copy code
- The total amount after 10 years is: 1628.89
- ond Calculator
- Run the script and choose 'bond':
- Copy code
- Choose either 'investment' or 'bond' from the menu below to proceed:
- investment - to calculate the amount of interest you'll earn on your investment
- bond - to calculate the amount you'll have to pay on a home loan
- bond
- Follow the prompts:
- Enter the present value of the house: 500000
- Enter the interest rate (as a percentage): 7
- Enter the number of months you plan to take to repay the bond: 240
- The calculator will display the result: