{"id":19629,"date":"2024-09-24T17:19:23","date_gmt":"2024-09-24T11:49:23","guid":{"rendered":"https:\/\/bigbreakingwire.in\/?post_type=tools&p=19629"},"modified":"2024-10-02T15:11:53","modified_gmt":"2024-10-02T09:41:53","slug":"roi-calculator","status":"publish","type":"tools","link":"https:\/\/bigbreakingwire.in\/tools\/roi-calculator\/","title":{"rendered":"ROI Calculator"},"content":{"rendered":"\n\n\n\n \n \n ROI Calculator<\/title>\n <style>\n body {\n font-family: Arial, sans-serif;\n color: #333;\n }\n\n .roi-calculator-container {\n max-width: 900px;\n margin: auto;\n background-color: #fff;\n padding: 20px;\n border-radius: 10px;\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n }\n\n .roi-calculator-container h1 {\n text-align: center;\n color: #BA2026;\n margin-bottom: 20px;\n }\n\n .input-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 20px;\n }\n\n .input-container input[type=\"number\"] {\n width: 70%;\n padding: 10px;\n border: 1px solid #ccc;\n border-radius: 5px;\n text-align: right;\n }\n\n .input-container label {\n width: 25%;\n margin-right: 10px;\n }\n\n .result-section {\n margin-top: 20px;\n }\n\n .result-box {\n padding: 20px;\n background-color: #f0f0f0;\n border-radius: 10px;\n text-align: center;\n }\n\n .result-box h3 {\n margin-bottom: 15px;\n color: #BA2026;\n }\n\n button {\n width: 100%;\n padding: 15px;\n background-color: #BA2026;\n color: white;\n border: none;\n border-radius: 5px;\n font-size: 18px;\n cursor: pointer;\n margin-top: 20px;\n }\n\n button:hover {\n background-color: #a6201f;\n }\n <\/style>\n<\/head>\n<body>\n\n <div class=\"roi-calculator-container\">\n <h1>ROI Calculator<\/h1>\n\n <div class=\"input-container\">\n <label for=\"roiGain\">Gain from Investment<\/label>\n <input type=\"number\" id=\"roiGain\" value=\"0\">\n <\/div>\n <div class=\"input-container\">\n <label for=\"roiCost\">Cost of Investment<\/label>\n <input type=\"number\" id=\"roiCost\" value=\"0\">\n <\/div>\n\n <button onclick=\"calculateROI()\">Calculate ROI<\/button>\n\n <div class=\"result-section\">\n <div class=\"result-box\">\n <h3>Result<\/h3>\n <p id=\"resultOutput\">ROI will appear here…<\/p>\n <\/div>\n <\/div>\n <\/div>\n\n <script>\n function calculateROI() {\n const gain = parseFloat(document.getElementById('roiGain').value);\n const cost = parseFloat(document.getElementById('roiCost').value);\n if (cost === 0) {\n document.getElementById('resultOutput').innerText = \"Cost of investment cannot be zero.\";\n return;\n }\n const roi = ((gain - cost) \/ cost) * 100;\n document.getElementById('resultOutput').innerText = `Return on Investment (ROI): ${roi.toFixed(2)}%`;\n }\n <\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>ROI Calculator ROI Calculator Gain from Investment Cost of Investment Calculate ROI Result ROI will appear here…<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"tools":[],"class_list":["post-19629","tools","type-tools","status-publish","format-standard","hentry","entry","rows"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/bigbreakingwire.in\/wp-json\/wp\/v2\/tools\/19629"}],"collection":[{"href":"https:\/\/bigbreakingwire.in\/wp-json\/wp\/v2\/tools"}],"about":[{"href":"https:\/\/bigbreakingwire.in\/wp-json\/wp\/v2\/types\/tools"}],"author":[{"embeddable":true,"href":"https:\/\/bigbreakingwire.in\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bigbreakingwire.in\/wp-json\/wp\/v2\/comments?post=19629"}],"version-history":[{"count":0,"href":"https:\/\/bigbreakingwire.in\/wp-json\/wp\/v2\/tools\/19629\/revisions"}],"wp:attachment":[{"href":"https:\/\/bigbreakingwire.in\/wp-json\/wp\/v2\/media?parent=19629"}],"wp:term":[{"taxonomy":"tools","embeddable":true,"href":"https:\/\/bigbreakingwire.in\/wp-json\/wp\/v2\/tools?post=19629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}