{"id":32,"date":"2023-09-05T05:29:34","date_gmt":"2023-09-05T04:29:34","guid":{"rendered":"https:\/\/efinlab.in\/?page_id=32"},"modified":"2023-09-05T19:22:33","modified_gmt":"2023-09-05T18:22:33","slug":"emi-calculator","status":"publish","type":"page","link":"https:\/\/efinlab.in\/?page_id=32","title":{"rendered":"EMI Calculator"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n<p><!DOCTYPE html> <html> <head> <title>Loan EMI Calculator<\/title> <\/head> <body> <\/p>\n<h1>Loan EMI Calculator<\/h1>\n<form id=\"loan-form\"> <label for=\"loan-amount\">Loan Amount (in Rs):<\/label> <input type=\"number\" id=\"loan-amount\" required><\/p>\n<p> <label for=\"interest-rate\">Annual Interest Rate (%):<\/label> <input type=\"number\" id=\"interest-rate\" required><\/p>\n<p> <label for=\"loan-tenure\">Loan Tenure (in months):<\/label> <input type=\"number\" id=\"loan-tenure\" required><\/p>\n<p> <input type=\"button\" value=\"Calculate EMI\" onclick=\"calculateEMI()\"> <\/form>\n<h2>EMI Result:<\/h2>\n<p id=\"emi-result\">\n<p> <script> function calculateEMI() { const loanAmount = parseFloat(document.getElementById('loan-amount').value); const annualInterestRate = parseFloat(document.getElementById('interest-rate').value); const loanTenure = parseFloat(document.getElementById('loan-tenure').value); if (isNaN(loanAmount) || isNaN(annualInterestRate) || isNaN(loanTenure)) { alert(\"Please enter valid numeric values.\"); return; } const monthlyInterestRate = (annualInterestRate \/ 12) \/ 100; const emi = (loanAmount * monthlyInterestRate * Math.pow(1 + monthlyInterestRate, loanTenure)) \/ (Math.pow(1 + monthlyInterestRate, loanTenure) - 1); document.getElementById('emi-result').textContent = `Your EMI: Rs.${emi.toFixed(2)} per month`; } <\/script> <\/body> <\/html><\/p>","protected":false},"excerpt":{"rendered":"<p>Loan EMI Calculator Loan EMI Calculator Loan Amount (in Rs): Annual Interest Rate (%): Loan Tenure (in months): EMI Result:<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-32","page","type-page","status-publish","hentry"],"aioseo_notices":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/efinlab.in\/index.php?rest_route=\/wp\/v2\/pages\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/efinlab.in\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/efinlab.in\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/efinlab.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/efinlab.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":7,"href":"https:\/\/efinlab.in\/index.php?rest_route=\/wp\/v2\/pages\/32\/revisions"}],"predecessor-version":[{"id":55,"href":"https:\/\/efinlab.in\/index.php?rest_route=\/wp\/v2\/pages\/32\/revisions\/55"}],"wp:attachment":[{"href":"https:\/\/efinlab.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}