{"id":19,"date":"2025-06-10T15:58:54","date_gmt":"2025-06-10T15:58:54","guid":{"rendered":"https:\/\/admetrix.in\/?page_id=19"},"modified":"2025-06-29T15:18:07","modified_gmt":"2025-06-29T15:18:07","slug":"calculator","status":"publish","type":"page","link":"https:\/\/admetrix.in\/home2\/calculator\/","title":{"rendered":"Amazon Calculator"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"19\" class=\"elementor elementor-19\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0620f9d e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"0620f9d\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d5ab423 elementor-widget elementor-widget-html\" data-id=\"d5ab423\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div style=\"display:flex; flex-wrap:wrap; gap:30px; justify-content:center; margin:20px 0;\">\r\n  <!-- Calculator Form -->\r\n  <div style=\"flex:1; min-width:300px; max-width:500px; border:1px solid #ddd; border-radius:10px; padding:20px;\">\r\n    <h2 style=\"text-align:center;\">CALCULATION<\/h2>\r\n    \r\n    <label>Category:<\/label><br>\r\n    <select id=\"category\" style=\"width:100%; padding:8px;\">\r\n      <option>Select Category<\/option>\r\n      <option>Electronics<\/option>\r\n      <option>Fashion<\/option>\r\n      <option>Home<\/option>\r\n    <\/select><br><br>\r\n   \r\n    <label>Subcategory:<\/label><br>\r\n    <select id=\"subcategory\" style=\"width:100%; padding:8px;\">\r\n      <option>Select a Subcategory<\/option>\r\n      <option>Mobile<\/option>\r\n      <option>Clothing<\/option>\r\n      <option>Furniture<\/option>\r\n    <\/select><br><br>\r\n    \r\n    <label>Enter Price (\u20b9):<\/label><br>\r\n    <input type=\"number\" id=\"price\" placeholder=\"Enter Price\" style=\"width:100%; padding:8px;\"><br><br>\r\n    \r\n    <label>Weight (gm):<\/label><br>\r\n    <input type=\"number\" id=\"weight\" placeholder=\"Weight\" style=\"width:100%; padding:8px;\"><br><br>\r\n    \r\n    <label>Area:<\/label><br>\r\n    <select id=\"area\" style=\"width:100%; padding:8px;\">\r\n      <option>Local<\/option>\r\n      <option>Regional<\/option>\r\n      <option>National<\/option>\r\n    <\/select><br><br>\r\n    \r\n    <label>Shipping Method:<\/label><br>\r\n    <select id=\"shippingMethod\" style=\"width:100%; padding:8px;\">\r\n      <option>Select Shipping Method<\/option>\r\n      <option>Standard<\/option>\r\n      <option>Express<\/option>\r\n    <\/select><br><br>\r\n    \r\n    <label>Select Step Level:<\/label><br>\r\n    <select id=\"stepLevel\" style=\"width:100%; padding:8px;\">\r\n      <option>Basic<\/option>\r\n      <option>Advanced<\/option>\r\n    <\/select><br><br>\r\n    \r\n    <label>Select GST Percentage:<\/label><br>\r\n    <select id=\"gstPercent\" style=\"width:100%; padding:8px;\">\r\n      <option value=\"5\">5%<\/option>\r\n      <option value=\"12\">12%<\/option>\r\n      <option value=\"18\" selected>18%<\/option>\r\n      <option value=\"28\">28%<\/option>\r\n    <\/select><br><br>\r\n    \r\n    <button onclick=\"calculateProfit()\" style=\"background:#007bff; color:#fff; border:none; padding:10px 20px; width:100%; border-radius:5px;\">Calculate<\/button>\r\n  <\/div>\r\n\r\n  <!-- Results -->\r\n  <div style=\"flex:1; min-width:300px; max-width:500px; border:1px solid #ddd; border-radius:10px; padding:20px;\">\r\n    <h2 style=\"text-align:center;\">RESULT<\/h2>\r\n    <div id=\"result\" style=\"margin-top:15px;\">\r\n      <ul style=\"list-style:none; padding:0;\">\r\n        <li style=\"padding:5px 0; border-bottom:1px solid #ddd;\">Referral Fee: \u20b9<span id=\"referralFee\">0<\/span><\/li>\r\n        <li style=\"padding:5px 0; border-bottom:1px solid #ddd;\">Closing Fee: \u20b9<span id=\"closingFee\">0<\/span><\/li>\r\n        <li style=\"padding:5px 0; border-bottom:1px solid #ddd;\">Shipping Fee: \u20b9<span id=\"shippingFee\">0<\/span><\/li>\r\n        <li style=\"padding:5px 0; border-bottom:1px solid #ddd;\">Total Fees: \u20b9<span id=\"totalFees\">0<\/span><\/li>\r\n        <li style=\"padding:5px 0; border-bottom:1px solid #ddd;\">GST: \u20b9<span id=\"gst\">0<\/span><\/li>\r\n        <li style=\"padding:5px 0; border-bottom:1px solid #ddd;\">Total Cost: \u20b9<span id=\"totalCost\">0<\/span><\/li>\r\n        <li style=\"padding:5px 0; background:#007bff; color:white; font-weight:bold;\">Your Profit: \u20b9<span id=\"profit\">0<\/span><\/li>\r\n      <\/ul>\r\n    <\/div>\r\n  <\/div>\r\n<\/div>\r\n\r\n<script>\r\nfunction calculateProfit() {\r\n  const price = parseFloat(document.getElementById(\"price\").value);\r\n  const weight = parseFloat(document.getElementById(\"weight\").value);\r\n  const gstPercent = parseFloat(document.getElementById(\"gstPercent\").value);\r\n  \r\n  if (isNaN(price) || isNaN(weight)) {\r\n    alert(\"Please enter valid price and weight.\");\r\n    return;\r\n  }\r\n  \r\n  \/\/ Example logic:\r\n  const referralFee = price * 0.10; \/\/ 10%\r\n  const closingFee = 15; \/\/ flat\r\n  let shippingFee = 0;\r\n  \r\n  if (weight <= 500) {\r\n    shippingFee = 40;\r\n  } else {\r\n    shippingFee = 60;\r\n  }\r\n  \r\n  const totalFees = referralFee + closingFee + shippingFee;\r\n  const gst = totalFees * gstPercent \/ 100;\r\n  const totalCost = totalFees + gst;\r\n  const profit = price - totalCost;\r\n  \r\n  \/\/ Display results\r\n  document.getElementById(\"referralFee\").innerText = referralFee.toFixed(2);\r\n  document.getElementById(\"closingFee\").innerText = closingFee.toFixed(2);\r\n  document.getElementById(\"shippingFee\").innerText = shippingFee.toFixed(2);\r\n  document.getElementById(\"totalFees\").innerText = totalFees.toFixed(2);\r\n  document.getElementById(\"gst\").innerText = gst.toFixed(2);\r\n  document.getElementById(\"totalCost\").innerText = totalCost.toFixed(2);\r\n  document.getElementById(\"profit\").innerText = profit.toFixed(2);\r\n}\r\n<\/script>\r\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>CALCULATION Category: Select CategoryElectronicsFashionHome Subcategory: Select a SubcategoryMobileClothingFurniture Enter Price (\u20b9): Weight (gm): Area: LocalRegionalNational Shipping Method: Select Shipping MethodStandardExpress Select Step Level: BasicAdvanced Select GST Percentage: 5%12%18%28% Calculate RESULT Referral Fee: \u20b90 Closing Fee: \u20b90 Shipping Fee: \u20b90 Total Fees: \u20b90 GST: \u20b90 Total Cost: \u20b90 Your Profit: \u20b90<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","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":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-19","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/admetrix.in\/home2\/wp-json\/wp\/v2\/pages\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/admetrix.in\/home2\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/admetrix.in\/home2\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/admetrix.in\/home2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/admetrix.in\/home2\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":33,"href":"https:\/\/admetrix.in\/home2\/wp-json\/wp\/v2\/pages\/19\/revisions"}],"predecessor-version":[{"id":1850,"href":"https:\/\/admetrix.in\/home2\/wp-json\/wp\/v2\/pages\/19\/revisions\/1850"}],"wp:attachment":[{"href":"https:\/\/admetrix.in\/home2\/wp-json\/wp\/v2\/media?parent=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}