This is a simple loan calculator built using HTML, CSS, and JavaScript. The calculator allows users to input their loan amount, interest rate, and the number of months to pay. It will then calculate the monthly payment and display the result.
Check out the live demo at Loan Calculator Live
-
Clone the repository or download the files:
index.htmlstyle.cssscript.js
-
Open the
index.htmlfile in your browser. -
Input the required values:
- Loan Amount (in €)
- Interest Rate (in %)
- Months to Pay (between 6 and 48 months)
-
The monthly payment will be automatically calculated as you change the values.
- index.html: The HTML file where the loan input fields and the result are displayed.
- style.css: Contains the styles to make the loan calculator look appealing and responsive.
- script.js: The JavaScript logic that handles the calculations of the monthly payment.
- The loan amount, interest rate, and months to pay are entered through the input fields.
- The JavaScript function
calculateLoan()is triggered every time any input field is changed. - It calculates the interest and the monthly payment using the formula:
© 2025 Simple Calculator. All Rights Reserved. | Developed & Designed by DevByRico