A simple web application that calculates loan payments.
- Calculate monthly installment (EMI) based on Principal, Interest Rate and Tenure\
- Show total payment (Principal + Interest)\
- Clean, responsive UI\
- Can be extended with charts or additional features
- HTML\
- CSS\
- JavaScript
- Any modern browser\
- (Optional) a local HTTP server like VSCode Live Server
-
Clone this repository:
git clone https://github.com/debug-node/Loan-Calculator.git
-
Go into the project folder:
cd Loan-Calculator -
Open
index.htmlin your browser (or run it using a live server). -
Enter Principal, Interest Rate and Tenure in the UI and click Calculate.
File / Folder Description
index.html Main HTML page / UI structure
style.css All CSS styles
script.js JavaScript logic for calculations
-
Takes user inputs (principal, rate, tenure) via the UI.\
-
Applies the EMI formula:
[ EMI =
\frac{P \times r \times (1 + r)^n}{(1 + r)^n - 1}{=tex} ]where:
- P = loan amount (principal)\
- r = monthly interest rate (annual rate divided by 12)\
- n = number of months (tenure)
-
Displays monthly installment, total interest, and total payment.
- Input fields cannot be empty\
- Rate and tenure must be positive numbers\
- Decimal / fractional interest rates are supported
- Support multiple time units for tenure (years / months)\
- Add charts or graphs to show payment distribution\
- Enhance UI styling\
- More robust input validation with error messages
This project can be released under the MIT License or any license
you prefer.
(Include the full license text here if you want.)
- debug-node