{"id":803,"date":"2025-05-05T17:34:00","date_gmt":"2025-05-05T12:04:00","guid":{"rendered":"https:\/\/weko.live\/?page_id=803"},"modified":"2025-05-05T23:11:41","modified_gmt":"2025-05-05T17:41:41","slug":"sip-calculator","status":"publish","type":"page","link":"https:\/\/weko.live\/index.php\/sip-calculator\/","title":{"rendered":"SIP calculator"},"content":{"rendered":"\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\n\n \n \n Custom SIP Calculator<\/title>\n <style>\n body {\n font-family: Arial, sans-serif;\n background: white;\n margin: 0;\n padding: 20px;\n }\n\n .container {\n max-width: 600px;\n margin: auto;\n background: #fff;\n padding: 25px;\n border: 1px solid #ccc;\n border-radius: 10px;\n box-shadow: 0 4px 10px rgba(0,0,0,0.05);\n }\n\n h2 {\n text-align: center;\n color: #333;\n margin-bottom: 25px;\n }\n\n .form-group {\n margin-bottom: 20px;\n }\n\n .form-group label {\n display: block;\n font-weight: bold;\n margin-bottom: 5px;\n color: #444;\n }\n\n .form-group input,\n .form-group select {\n width: 100%;\n padding: 10px;\n font-size: 16px;\n border-radius: 5px;\n border: 1px solid #ccc;\n }\n\n button {\n width: 100%;\n padding: 12px;\n background-color: #007bff;\n color: white;\n font-size: 16px;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n }\n\n button:hover {\n background-color: #0056b3;\n }\n\n #result {\n margin-top: 25px;\n background: #f9f9f9;\n padding: 20px;\n border-radius: 5px;\n font-weight: bold;\n text-align: center;\n }\n\n @media (max-width: 600px) {\n .container {\n padding: 15px;\n }\n }\n <\/style>\n<\/head>\n<body>\n\n<div class=\"container\">\n <h2>Custom SIP Calculator<\/h2>\n\n <div class=\"form-group\">\n <label for=\"sipAmount\">Amount Invested (Monthly in \u20b9)<\/label>\n <input type=\"number\" id=\"sipAmount\" placeholder=\"e.g. 5000\" \/>\n <\/div>\n\n <div class=\"form-group\">\n <label for=\"returnRate\">Expected Return (%)<\/label>\n <input type=\"number\" id=\"returnRate\" placeholder=\"e.g. 12\" \/>\n <\/div>\n\n <div class=\"form-group\">\n <label for=\"ratePeriod\">Return Rate Period<\/label>\n <select id=\"ratePeriod\">\n <option value=\"year\">Per Year<\/option>\n <option value=\"month\">Per Month<\/option>\n <option value=\"day\">Per Day<\/option>\n <\/select>\n <\/div>\n\n <div class=\"form-group\">\n <label for=\"duration\">Duration of Investment<\/label>\n <input type=\"number\" id=\"duration\" placeholder=\"e.g. 5\" \/>\n <\/div>\n\n <div class=\"form-group\">\n <label for=\"durationType\">Duration Type<\/label>\n <select id=\"durationType\">\n <option value=\"year\">Years<\/option>\n <option value=\"month\">Months<\/option>\n <option value=\"day\">Days<\/option>\n <\/select>\n <\/div>\n\n <button onclick=\"calculateSIP()\">Calculate<\/button>\n\n <div id=\"result\"><\/div>\n<\/div>\n\n<script>\n function calculateSIP() {\n const P = parseFloat(document.getElementById(\"sipAmount\").value);\n const rate = parseFloat(document.getElementById(\"returnRate\").value);\n const ratePeriod = document.getElementById(\"ratePeriod\").value;\n const duration = parseFloat(document.getElementById(\"duration\").value);\n const durationType = document.getElementById(\"durationType\").value;\n\n if (!P || !rate || !duration) {\n document.getElementById(\"result\").innerHTML = \"Please fill all fields correctly.\";\n return;\n }\n\n let r;\n if (ratePeriod === \"year\") r = rate \/ 12 \/ 100;\n else if (ratePeriod === \"month\") r = rate \/ 100;\n else if (ratePeriod === \"day\") r = (rate * 30) \/ 100;\n\n let n;\n if (durationType === \"year\") n = duration * 12;\n else if (durationType === \"month\") n = duration;\n else if (durationType === \"day\") n = duration \/ 30;\n\n const A = P * ((Math.pow(1 + r, n) - 1) \/ r) * (1 + r);\n const invested = P * n;\n\n document.getElementById(\"result\").innerHTML =\n `Total Invested: \u20b9${invested.toFixed(2)}<br>` +\n `Estimated Returns: \u20b9${(A - invested).toFixed(2)}<br>` +\n `Final Amount: \u20b9${A.toFixed(2)}`;\n }\n<\/script>\n\n<\/body>\n<\/html>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Custom SIP Calculator Custom SIP Calculator Amount Invested (Monthly in \u20b9) Expected Return (%) Return Rate Period Per YearPer MonthPer Day Duration of Investment Duration Type YearsMonthsDays Calculate<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_eb_attr":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"class_list":["post-803","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/weko.live\/index.php\/wp-json\/wp\/v2\/pages\/803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/weko.live\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/weko.live\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/weko.live\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/weko.live\/index.php\/wp-json\/wp\/v2\/comments?post=803"}],"version-history":[{"count":11,"href":"https:\/\/weko.live\/index.php\/wp-json\/wp\/v2\/pages\/803\/revisions"}],"predecessor-version":[{"id":822,"href":"https:\/\/weko.live\/index.php\/wp-json\/wp\/v2\/pages\/803\/revisions\/822"}],"wp:attachment":[{"href":"https:\/\/weko.live\/index.php\/wp-json\/wp\/v2\/media?parent=803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}