This is an interactive financial calculator implemented in Python. It allows users to perform various interest calculations, including simple interest, compound interest, periodic interest, continuous interest, and interest with periodic deposits. Users can input the required parameters and receive immediate results for their financial calculations.
- Interactive console-based user interface
- Calculation of different types of interest:
- Simple Interest
- Compound Interest
- Periodic Interest
- Continuous Interest
- Interest with Periodic Deposits
- Easy-to-follow prompts and detailed explanations for each calculation
- Modular code structure for better organization and maintenance
- Main Menu: The user is presented with a menu of different financial formulas to choose from.
- User Input: After selecting a formula, the user is prompted to enter the necessary parameters.
- Calculation: The program performs the calculation based on the user's input and displays the result.
- Repeat or Exit: The user is asked if they want to perform another calculation or exit the program.
financial_calculations.py: Contains all the calculation methods for the different types of interest.menu.py: Handles the user interactions, displays the menu, and processes the user's choices.main.py: The entry point of the program, manages the main loop for user interaction.
To run the program, execute the main.py file. Follow the prompts to perform your desired financial calculations.
Which formula would you like to use?
1. Simple Interest Future Value (FV)
2. Simple Interest Present Value (PV)
3. Simple Interest Rate (r)
4. Compound Interest Future Value (FV)
5. Compound Interest Present Value (PV)
6. Compound Interest Rate (r)
7. Periodic Interest Future Value (FV)
8. Periodic Interest Present Value (PV)
9. Periodic Interest Rate (r)
10. Continuous Interest Future Value (FV)
11. Continuous Interest Present Value (PV)
12. Continuous Interest Rate (r)
13. Interest with Periodic Deposit Future Value (FV)
user: 1
Recall: PV = Present Value, r = Interest Rate, n = Number of Periods
Enter PV, r, n separated by spaces:
user: 1000 0.05 50
Future Value: 3500.0
You will have 3500.0 in 50 years with a simple interest rate of 5.0%.
Do you want to perform another calculation? (yes/no)
user: no
PV= Present Valuer= Interest Raten= Number of Periods
PV= Present Valuer= Interest Raten= Number of Periods
PV= Present Valuer= Interest Raten= Number of Periodsm= Number of Compounding Periods per Year
PV= Present Valuer= Interest Raten= Number of Periods
ln= Natural Logarithm
A= Amount Deposited Periodicallyr= Interest Raten= Number of Periodsm= Number of Compounding Periods per Year
Ensure all files (financial_calculations.py, menu.py, and main.py) are in the same directory or appropriately referenced in your project structure. Execute the main.py file:
python main.pyThis project provides a clear and interactive way to perform various financial calculations, making it a useful tool for anyone interested in financial mathematics.