It seems we can’t find what you’re looking for. Perhaps searching can help.
Recent Comments
No comments to show.
Archives
No archives to show.
Categories
- No categories
RSS Error: WP HTTP Error: A valid URL was not provided.
<h3>EMI Calculator</h3>
<label for="loanAmount">Loan Amount:</label>
<input type="number" id="loanAmount" name="loanAmount">
<label for="interestRate">Interest Rate (%):</label>
<input type="number" id="interestRate" name="interestRate">
<label for="loanTenure">Loan Tenure (years):</label>
<input type="number" id="loanTenure" name="loanTenure">
<button onclick="calculateEMI()">Calculate EMI</button>
<p id="emiResult"></p>
<script>
function calculateEMI() {
const loanAmount = document.getElementById("loanAmount").value;
const interestRate = document.getElementById("interestRate").value / 12 / 100;
const loanTenure = document.getElementById("loanTenure").value * 12;
const emi = (loanAmount * interestRate * Math.pow(1 + interestRate, loanTenure)) / (Math.pow(1 + interestRate, loanTenure) - 1);
document.getElementById("emiResult").innerText = "EMI: ₹" + emi.toFixed(2);
}
</script>



