Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*const _principalAmount = ;
- const _interestRateYear = ;
- const _tenureMonth = ;
- ;
- */
- function calculateEMI() {
- const principalAmount = document.getElementById("principalAmount").value;
- const interestRateYear = document.getElementById("interestRate").value;
- const interestRateMonth = Number(interestRateYear / 1200);
- const tenureMonth = document.getElementById("tenure").value;
- const result = document.getElementById("result");
- const emi=(P * R * (Math.pow((1 + R), N) / (Math.pow((1 + R), N) - 1)));
- // const emi = getEmiReducing(principalAmount, tenureMonth, interestRateMonth);
- result.innerHTML= "EMI is Rs." + emi;
- // return false;
- }
- /*function getEmiReducing(P, N, R) {
- return (;
- }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement