This C project is a command-line amortization calculator that analyzes loan affordability and repayment over time. It calculates the maximum loan amount based on a user defined monthly payment, determines the required monthly payment for a given loan, and generates a detailed amortization schedule showing how each payment is divided between principal and interest.
Note: This project was created for academic and learning purposes. It is not intended for production use.
- Ensure a C compiler is installed on your system.
- Download or clone the repository and navigate to the project directory.
- No external dependencies are required — the program uses only standard C libraries (
stdio.h,math.h).
Compile and run the program using your terminal or command prompt.
You will be prompted with the following inputs:
Enter the monthly payment you can afford:
Enter the number of years:
Enter the annual interest rate (decimal form):
Enter the amount borrowed:
-
Loan Affordability Calculation
- Computes the maximum loan amount based on a monthly payment
- Converts loan duration from years to months
- Adjusts annual interest rate to a monthly rate
-
Monthly Payment Calculation
- Calculates the required monthly payment for a given loan amount
- Uses standard amortization formulas
-
Amortization Schedule Generation
- Displays a formatted table including:
- Principal paid per period
- Interest paid per period
- Total interest accumulated
- Remaining balance
- Displays a formatted table including:
- Financial calculations using amortization formulas
- Iterative balance and interest tracking
- Dynamic amortization table generation
- Formatted console output for readability
Amortization-Calculator/
└── amortization.c
- C programming
- Mathematical and financial modeling
- Use of standard libraries (
math.h) - Control structures (loops, conditionals)
- Console input/output handling
- Add input validation and error handling
- Export amortization schedule to CSV