- Investment Calculator: Calculate returns on investments with both simple and compound interest
- Bond Calculator: Calculate monthly home loan repayments
- Input Validation: Robust error handling with positive number validation
- User-Friendly Interface: Clear prompts and formatted output
- Recursive Operation: Option to perform multiple calculations in one session
- Comprehensive Error Handling: Graceful handling of invalid inputs
-
Investment Calculator:
-
Simple Interest:
A = P × (1 + r × t)
-
Compound Interest:
A = P × (1 + r) ^ t
Where:
P
= principal amount
r
= annual interest rate (decimal)
t
= number of years invested -
-
Bond Calculator:
- Monthly Repayment:
repayment = (i × P) / (1 - (1 + i) ^ (-n))
Where:
P
= present value (house price)
i
= monthly interest rate (decimal)
n
= number of months to repay - Monthly Repayment:
- Python – Core programming language
- Math Module – For mathematical calculations (pow function)
git clone https://github.com/XanderSteyn/HyperionDev.Variables-Control-Structures/
cd "HyperionDev.Variables-Control-Structures"
python finance_calculators.py
This repository is protected by a custom license. See the LICENSE file for details.
Unauthorized copying or submission of this work for academic purposes is prohibited.