This Python script serves as a financial calculator, allowing users to perform two main calculations: investment interest and bond repayments. Users can input their financial parameters to receive accurate calculations for their investment returns or monthly bond repayments.
Investment Calculation: Users can calculate the amount of interest earned on their investment over a specified period, with options for simple or compound interest calculations. Bond Repayment Calculation: Users can determine the monthly repayment amount for a home loan based on the loan amount, interest rate, and repayment period.
Installation: Clone the repository or download the Python script (financial_calculator.py) to your local machine.
Dependencies: Ensure you have Python installed on your system to run the script.
Run the Script: Open a terminal or command prompt, navigate to the directory containing the script, and run the script using the command python financial_calculator.py.
Input: Follow the on-screen instructions to choose between investment or bond calculation and provide the required financial parameters.
Output: The script will display the calculated results based on the provided inputs.
To calculate investment interest:
sql Copy code Choose 'investment' or 'bond' from the menu below to proceed: Please select either you want to use 'investment' or 'bond': investment How much are you depositing? R: 50000 At which interest rate percentile? 10 How many years are you planning to invest for? 5 Choose 'Simple' or 'Compound' interest: Compound
Your interest earned over 5 years will be R 80525.00 To calculate bond repayments:
csharp Copy code Choose 'investment' or 'bond' from the menu below to proceed: Please select either you want to use 'investment' or 'bond': bond What is the current value of the house? R: 250000 At which interest rate percentile? 8 How many months you plan to repay? 240
Your monthly repayment will be R 1983.88