Simple Javascript helps to calculate the accurate EMI (Equated Monthly Installment) for any vehicle loan based on its amount, down payment, annual interest rate, term period.
Features
Calculate Equated Monthly Installment (EMI) for any vehicle loan.
EMI calculator script to determine how much you need to pay every month based on the vehicle loan.
This script is easy and free to use. It works on all modern browsers.
<!--Script by hscripts.com--><!-- Free javascripts @ https://www.hscripts.com --> <script type="text/javascript"> function checnum(as){ var a = as.value; for(var x=0; x<a.length; x++) { var ff = a[x]; if(isNaN(a)) { a = a.substring(0,(a.length-1)); as.value = a; }} } function loanemi_calc() { var sds = document.getElementById("dum"); if(sds == null){ alert("You are using a free package.\n You are not allowed to remove the copyright.\n"); } var sdss = document.getElementById("dumdiv"); if(sdss == null){ alert("You are using a free package.\n You are not allowed to remove the copyright.\n"); } if(sdss != null) {var lamt = document.getElementById("lamt").value;var dpay = document.getElementById("dpay").value;var inte = document.getElementById("inte").value;var term = document.getElementById("term").value;if(lamt==""){alert("Enter Vehicle loan amount");document.getElementById("lamt").focus();}else if(inte==""){alert("Enter interest rate in percentage");document.getElementById("dpay").focus();}else if(term==""){alert("Enter term of loan payment");document.getElementById("inte").focus();}else{if(dpay==""){dpay = 0;document.getElementById("term").value=dpay;//$("#dpay").val(dpay);}lamt = parseFloat(lamt);dpay = parseFloat(dpay);inte = parseFloat(inte);term = parseFloat(term);if(dpay<=lamt){var p = lamt - dpay;var r = inte/1200;var part1 = Math.pow((1+r), term);var part2 = p * r * part1;var part3 = part1 - 1;var emi = Math.round(100 * (part2 / part3)) / 100;document.getElementById("emi").value=emi;var tamt = Math.round(100 * emi * term) / 100;document.getElementById("tamt").value=tamt;var tip = Math.round(100 * (tamt - p)) / 100;document.getElementById("tip").value=tip;}else{alert("Enter down payment less than the Auto loan amount");document.getElementById("dpay").value="";document.getElementById("dpay").focus();}} } } function reset() { document.getElementById("lamt").value="";document.getElementById("dpay").value="";document.getElementById("inte").value="";document.getElementById("term").value="";document.getElementById("emi").value="";document.getElementById("tip").value="";document.getElementById("tamt").value="" ; } </script> <!-- Script by hscripts.com -->