Home Loan EMI Calculator
function calculateEMI(){
const loanAmount = parseFloat(document.getElementById(“loanAmount”).value);
const loanTenure = parseFloat(document.getElementById(“loanTenure”).value);
const interestRate = parseFloat(document.getElementById(“interestRate”).value);
if(isNaN(loanAmount) || isNaN(loanTenure) || isNaN(interestRate) || loanAmount <= 0 || loanTenure <= 0 || interestRate el.value=””);
document.getElementById(“emiResult”).value = “”;
}