{"id":41,"date":"2013-10-30T12:37:38","date_gmt":"2013-10-30T12:37:38","guid":{"rendered":"http:\/\/www.indiavision.com\/health-fitness-medicine\/?page_id=41"},"modified":"2025-10-28T21:06:05","modified_gmt":"2025-10-28T21:06:05","slug":"weight-loss-calculator","status":"publish","type":"page","link":"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/","title":{"rendered":"Weight Loss Calculator"},"content":{"rendered":"    <style>\r\n        .ivapps-calculator {\r\n            max-width: 400px;\r\n            margin: 20px auto;\r\n            padding: 20px;\r\n            border: 1px solid #ccc;\r\n            border-radius: 8px;\r\n            font-family: sans-serif;\r\n            background: #f9f9f9;\r\n        }\r\n        .ivapps-calculator h2 {\r\n            text-align: center;\r\n            margin-bottom: 15px;\r\n        }\r\n        .ivapps-calculator label {\r\n            display: block;\r\n            margin-top: 10px;\r\n        }\r\n        .ivapps-calculator input {\r\n            width: 100%;\r\n            padding: 8px;\r\n            margin-top: 5px;\r\n            box-sizing: border-box;\r\n        }\r\n        .ivapps-calculator button {\r\n            margin-top: 15px;\r\n            width: 100%;\r\n            padding: 10px;\r\n            background: #0073aa;\r\n            color: white;\r\n            border: none;\r\n            border-radius: 4px;\r\n            cursor: pointer;\r\n        }\r\n        .ivapps-calculator button:hover {\r\n            background: #005f8d;\r\n        }\r\n        .ivapps-result {\r\n            margin-top: 15px;\r\n            font-weight: bold;\r\n            text-align: center;\r\n        }\r\n    <\/style>\r\n\r\n    <div class=\"ivapps-calculator\">\r\n        <h2>Weight Loss Calculator<\/h2>\r\n        <form id=\"ivapps-weight-form\">\r\n            <label for=\"calories\">Daily Calorie Deficit (kcal):<\/label>\r\n            <input type=\"number\" id=\"calories\" required>\r\n\r\n            <label for=\"days\">Duration (days):<\/label>\r\n            <input type=\"number\" id=\"days\" required>\r\n\r\n            <button type=\"submit\">Calculate<\/button>\r\n        <\/form>\r\n        <div class=\"ivapps-result\" id=\"ivapps-result\"><\/div>\r\n    <\/div>\r\n\r\n    <script>\r\n        document.getElementById('ivapps-weight-form').addEventListener('submit', function(e) {\r\n            e.preventDefault();\r\n            const calories = parseFloat(document.getElementById('calories').value);\r\n            const days = parseFloat(document.getElementById('days').value);\r\n            const resultDiv = document.getElementById('ivapps-result');\r\n\r\n            if (calories > 0 && days > 0) {\r\n                const totalDeficit = calories * days;\r\n                const weightLossKg = (totalDeficit \/ 7700).toFixed(2); \/\/ 7700 kcal \u2248 1 kg\r\n                resultDiv.textContent = `Estimated Weight Loss: ${weightLossKg} kg`;\r\n            } else {\r\n                resultDiv.textContent = 'Please enter valid numbers.';\r\n            }\r\n        });\r\n    <\/script>\r\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"class_list":{"0":"post-41","1":"page","2":"type-page","3":"status-publish","5":"bn-entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Weight Loss Calculator - IndiaVision Health Howto, Fitness Tips and Medicinal Advices<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/\",\"url\":\"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/\",\"name\":\"Weight Loss Calculator - IndiaVision Health Howto, Fitness Tips and Medicinal Advices\",\"isPartOf\":{\"@id\":\"https:\/\/www.indiavision.com\/health-fitness-medicine\/#website\"},\"datePublished\":\"2013-10-30T12:37:38+00:00\",\"dateModified\":\"2025-10-28T21:06:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.indiavision.com\/health-fitness-medicine\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Weight Loss Calculator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.indiavision.com\/health-fitness-medicine\/#website\",\"url\":\"https:\/\/www.indiavision.com\/health-fitness-medicine\/\",\"name\":\"IndiaVision Health Howto, Fitness Tips and Medicinal Advices\",\"description\":\"Just another IndiaVision News and Information Sites site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.indiavision.com\/health-fitness-medicine\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Weight Loss Calculator - IndiaVision Health Howto, Fitness Tips and Medicinal Advices","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/","url":"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/","name":"Weight Loss Calculator - IndiaVision Health Howto, Fitness Tips and Medicinal Advices","isPartOf":{"@id":"https:\/\/www.indiavision.com\/health-fitness-medicine\/#website"},"datePublished":"2013-10-30T12:37:38+00:00","dateModified":"2025-10-28T21:06:05+00:00","breadcrumb":{"@id":"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.indiavision.com\/health-fitness-medicine\/weight-loss-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.indiavision.com\/health-fitness-medicine\/"},{"@type":"ListItem","position":2,"name":"Weight Loss Calculator"}]},{"@type":"WebSite","@id":"https:\/\/www.indiavision.com\/health-fitness-medicine\/#website","url":"https:\/\/www.indiavision.com\/health-fitness-medicine\/","name":"IndiaVision Health Howto, Fitness Tips and Medicinal Advices","description":"Just another IndiaVision News and Information Sites site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.indiavision.com\/health-fitness-medicine\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.indiavision.com\/health-fitness-medicine\/wp-json\/wp\/v2\/pages\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.indiavision.com\/health-fitness-medicine\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.indiavision.com\/health-fitness-medicine\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.indiavision.com\/health-fitness-medicine\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.indiavision.com\/health-fitness-medicine\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":0,"href":"https:\/\/www.indiavision.com\/health-fitness-medicine\/wp-json\/wp\/v2\/pages\/41\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.indiavision.com\/health-fitness-medicine\/wp-json\/wp\/v2\/media?parent=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}