{"id":3264,"date":"2025-12-30T14:10:43","date_gmt":"2025-12-30T14:10:43","guid":{"rendered":"https:\/\/syedharis.com\/test\/?page_id=3264"},"modified":"2026-01-21T07:37:11","modified_gmt":"2026-01-21T07:37:11","slug":"loan-calculator","status":"publish","type":"page","link":"https:\/\/syedharis.com\/test\/car-deals\/loan-calculator\/","title":{"rendered":"Loan Calculator"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"3264\" class=\"elementor elementor-3264\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-383261f e-flex e-con-boxed e-con e-parent\" data-id=\"383261f\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-7bba32f e-con-full e-flex e-con e-child\" data-id=\"7bba32f\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-9243d02 e-con-full e-flex e-con e-child\" data-id=\"9243d02\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ec753b4 elementor-widget elementor-widget-heading\" data-id=\"ec753b4\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Loan Calculator<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0ca6a50 elementor-widget elementor-widget-text-editor\" data-id=\"0ca6a50\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Use our loan calculator to calculate payments over the life of your loan. Enter your <br \/>information to see how much your monthly payments could be. You can adjust length of loan, <br \/>down payment and interest rate to see how those changes raise or lower your payments.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4275085 e-con-full e-flex e-con e-child\" data-id=\"4275085\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4bd2e0a elementor-widget elementor-widget-shortcode\" data-id=\"4bd2e0a\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\t<div class=\"emi-calculator\">\n\n\t\t<div class=\"emi-fields\">\n\t\t\t<div class=\"field\">\n\t\t\t\t<label>Price<\/label>\n\t\t\t\t<input type=\"number\" id=\"price\" placeholder=\"Enter price\">\n\t\t\t<\/div>\n\n\t\t\t<div class=\"field\">\n\t\t\t\t<label>Interest Rate (%)<\/label>\n\t\t\t\t<input type=\"number\" id=\"rate\" value=\"10\">\n\t\t\t<\/div>\n\n\t\t\t<div class=\"field\">\n\t\t\t\t<label>Period (Months)<\/label>\n\t\t\t\t<input type=\"number\" id=\"months\" value=\"48\">\n\t\t\t<\/div>\n\n\t\t\t<div class=\"field\">\n\t\t\t\t<label>Down Payment<\/label>\n\t\t\t\t<input type=\"number\" id=\"down\" value=\"10000\" min=\"10000\" step=\"500\">\n\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t<p id=\"emi-error\" style=\"color:red;display:none;margin:10px 0;\"><\/p>\n\n\t\t<div class=\"emi-result\">\n\t\t\t<div class=\"result-box\">\n\t\t\t\t<h4>Monthly Payment<\/h4>\n\t\t\t\t<span id=\"monthly\">-<\/span>\n\t\t\t<\/div>\n\n\t\t\t<div class=\"divider\"><\/div>\n\n\t\t\t<div class=\"result-box\">\n\t\t\t\t<h4>Total Interest<\/h4>\n\t\t\t\t<span id=\"interest\">-<\/span>\n\t\t\t<\/div>\n\n\t\t\t<div class=\"divider\"><\/div>\n\n\t\t\t<div class=\"result-box\">\n\t\t\t\t<h4>Total Payment<\/h4>\n\t\t\t\t<span id=\"total\">-<\/span>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t<\/div>\n\n<script>\nfunction calculateEMI() {\n\n\tlet price   = parseFloat(document.getElementById('price').value);\n\tlet rate    = parseFloat(document.getElementById('rate').value);\n\tlet months  = parseInt(document.getElementById('months').value);\n\tlet down    = parseFloat(document.getElementById('down').value);\n\n\tlet monthlyEl  = document.getElementById('monthly');\n\tlet interestEl = document.getElementById('interest');\n\tlet totalEl    = document.getElementById('total');\n\tlet errorBox   = document.getElementById('emi-error');\n\n\t\/* RESET DEFAULT *\/\n\tmonthlyEl.innerText  = '-';\n\tinterestEl.innerText = '-';\n\ttotalEl.innerText    = '-';\n\terrorBox.style.display = 'none';\n\n\t\/* CONDITION 1: price empty ya invalid *\/\n\tif (!price || price <= 0) return;\n\n\t\/* CONDITION 2: down payment >= price *\/\n\tif (down >= price) return;\n\n\t\/* CONDITION 3: minimum down payment *\/\n\tif (down < 10000) {\n\t\terrorBox.style.display = 'block';\n\t\terrorBox.innerText = '\u274c Down Payment must be at least 10,000';\n\t\treturn;\n\t}\n\n\tlet loanAmount  = price - down;\n\tlet monthlyRate = (rate \/ 100) \/ 12;\n\n\tlet emi = (loanAmount * monthlyRate * Math.pow(1 + monthlyRate, months)) \/\n\t\t\t  (Math.pow(1 + monthlyRate, months) - 1);\n\n\tlet totalPayment  = emi * months;\n\tlet totalInterest = totalPayment - loanAmount;\n\n\tmonthlyEl.innerText  = 'A$' + emi.toFixed(2);\n\tinterestEl.innerText = 'A$' + totalInterest.toFixed(2);\n\ttotalEl.innerText    = 'A$' + (totalPayment + down).toFixed(2);\n}\n\n\/* EVENTS *\/\n['price','rate','months','down'].forEach(id => {\n\tdocument.getElementById(id).addEventListener('input', calculateEMI);\n});\n<\/script>\n\n\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7f1cbb5 elementor-widget elementor-widget-text-editor\" data-id=\"7f1cbb5\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Title and other fees and incentives are not included in this calculation, which is an estimate only. Monthly payment estimates <br \/>are for informational purpose and do not represent a financing offer from the seller of this vehicle. Other taxes may apply.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Loan Calculator Use our loan calculator to calculate payments over the life of your loan. Enter your information to see how much your monthly payments could be. You can adjust length of loan, down payment and interest rate to see how those changes raise or lower your payments. Title and other fees and incentives are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2781,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-3264","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/syedharis.com\/test\/wp-json\/wp\/v2\/pages\/3264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/syedharis.com\/test\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/syedharis.com\/test\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/syedharis.com\/test\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/syedharis.com\/test\/wp-json\/wp\/v2\/comments?post=3264"}],"version-history":[{"count":61,"href":"https:\/\/syedharis.com\/test\/wp-json\/wp\/v2\/pages\/3264\/revisions"}],"predecessor-version":[{"id":3665,"href":"https:\/\/syedharis.com\/test\/wp-json\/wp\/v2\/pages\/3264\/revisions\/3665"}],"up":[{"embeddable":true,"href":"https:\/\/syedharis.com\/test\/wp-json\/wp\/v2\/pages\/2781"}],"wp:attachment":[{"href":"https:\/\/syedharis.com\/test\/wp-json\/wp\/v2\/media?parent=3264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}