{"id":401,"date":"2026-04-12T09:30:47","date_gmt":"2026-04-12T09:30:47","guid":{"rendered":"https:\/\/apnainsta.online\/?page_id=401"},"modified":"2026-04-12T09:30:47","modified_gmt":"2026-04-12T09:30:47","slug":"gst-calculator","status":"publish","type":"page","link":"https:\/\/apnainsta.online\/?page_id=401","title":{"rendered":"GST Calculator"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>GST Calculator<\/title>\n\n<style>\nbody {\n    font-family: Arial, sans-serif;\n    background: #f4f7fb;\n}\n\n.gst-container {\n    max-width: 400px;\n    margin: 30px auto;\n    background: #fff;\n    padding: 20px;\n    border-radius: 12px;\n    box-shadow: 0 5px 15px rgba(0,0,0,0.1);\n}\n\n.gst-container h2 {\n    text-align: center;\n    margin-bottom: 20px;\n}\n\n.input-group {\n    margin-bottom: 15px;\n}\n\nlabel {\n    font-weight: bold;\n    display: block;\n    margin-bottom: 5px;\n}\n\ninput, select {\n    width: 100%;\n    padding: 10px;\n    border-radius: 8px;\n    border: 1px solid #ccc;\n}\n\nbutton {\n    width: 100%;\n    padding: 12px;\n    background: #28a745;\n    color: white;\n    border: none;\n    border-radius: 8px;\n    font-size: 16px;\n    cursor: pointer;\n}\n\nbutton:hover {\n    background: #1e7e34;\n}\n\n.result {\n    margin-top: 20px;\n    text-align: center;\n    font-size: 18px;\n    font-weight: bold;\n    color: #333;\n}\n\n\/* Responsive *\/\n@media(max-width: 500px) {\n    .gst-container {\n        margin: 15px;\n        padding: 15px;\n    }\n}\n<\/style>\n<\/head>\n\n<body>\n\n<div class=\"gst-container\">\n    <h2>GST Calculator<\/h2>\n\n    <div class=\"input-group\">\n        <label>Amount (\u20b9)<\/label>\n        <input type=\"number\" id=\"amount\" placeholder=\"Enter amount\">\n    <\/div>\n\n    <div class=\"input-group\">\n        <label>GST Rate (%)<\/label>\n        <select id=\"gstRate\">\n            <option value=\"5\">5%<\/option>\n            <option value=\"12\">12%<\/option>\n            <option value=\"18\">18%<\/option>\n            <option value=\"28\">28%<\/option>\n        <\/select>\n    <\/div>\n\n    <div class=\"input-group\">\n        <label>Calculation Type<\/label>\n        <select id=\"type\">\n            <option value=\"exclusive\">Add GST (Exclusive)<\/option>\n            <option value=\"inclusive\">Remove GST (Inclusive)<\/option>\n        <\/select>\n    <\/div>\n\n    <button onclick=\"calculateGST()\">Calculate GST<\/button>\n\n    <div class=\"result\" id=\"result\"><\/div>\n<\/div>\n\n<script>\nfunction calculateGST() {\n    let amount = parseFloat(document.getElementById(\"amount\").value);\n    let rate = parseFloat(document.getElementById(\"gstRate\").value);\n\n    if (isNaN(amount)) {\n        document.getElementById(\"result\").innerHTML = \"Please enter valid amount\";\n        return;\n    }\n\n    let gst, total;\n\n    if (document.getElementById(\"type\").value === \"exclusive\") {\n        gst = (amount * rate) \/ 100;\n        total = amount + gst;\n        document.getElementById(\"result\").innerHTML =\n            \"GST: \u20b9 \" + gst.toFixed(2) + \"<br>Total Amount: \u20b9 \" + total.toFixed(2);\n    } else {\n        gst = amount - (amount * (100 \/ (100 + rate)));\n        total = amount - gst;\n        document.getElementById(\"result\").innerHTML =\n            \"GST: \u20b9 \" + gst.toFixed(2) + \"<br>Original Amount: \u20b9 \" + total.toFixed(2);\n    }\n}\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>GST Calculator GST Calculator Amount (\u20b9) GST Rate (%) 5%12%18%28% Calculation Type Add GST (Exclusive)Remove GST (Inclusive) Calculate GST<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-401","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/apnainsta.online\/index.php?rest_route=\/wp\/v2\/pages\/401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apnainsta.online\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/apnainsta.online\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/apnainsta.online\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apnainsta.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=401"}],"version-history":[{"count":1,"href":"https:\/\/apnainsta.online\/index.php?rest_route=\/wp\/v2\/pages\/401\/revisions"}],"predecessor-version":[{"id":402,"href":"https:\/\/apnainsta.online\/index.php?rest_route=\/wp\/v2\/pages\/401\/revisions\/402"}],"wp:attachment":[{"href":"https:\/\/apnainsta.online\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}