With GST, rate calculations for Pharma Stockist and Pharma Retailers have been changed. Below PCD Calculator will give you a general idea of how to calculate retail and stockist margin. Here PTR means Price to Retailer and PTS means Price to Stockist. You can also calculate the net scheme. For example, if you want to give a scheme of 10% then this calculator automatically calculates the net scheme value according to the percentage you enter.
GST [5% / 12% / 18%]
P.T.S = (MRP – Stockist Margin) ÷ (100+GST)*100
P.T.R (If Stockist Margin is 10%) = PTS-10%
You can add a margin of retail and stockist.
<div class="profit-margin-calculator"> <h2>Profit Margin Calculator</h2> <div class="pmc-row"> <label>Revenue</label> <input type="number" id="revenue" placeholder="Enter revenue" /> </div> <div class="pmc-row"> <label>Cost</label> <input type="number" id="cost" placeholder="Enter cost" /> </div> <div class="pmc-row"> <label>Profit</label> <input type="text" id="profit" readonly /> </div> <div class="pmc-row"> <label>Markup (%)</label> <input type="text" id="markup" readonly /> </div> <div class="pmc-row"> <label>Profit Margin (%)</label> <input type="text" id="margin" readonly /> </div> <button onclick="calculateMargin()">Calculate</button> <button onclick="resetCalculator()">Reset</button> </div> <style> .profit-margin-calculator { max-width: 400px; margin: 20px auto; padding: 20px; border: 2px solid #ccc; border-radius: 12px; font-family: Arial, sans-serif; background: #f9f9f9; } .profit-margin-calculator h2 { text-align: center; margin-bottom: 15px; } .pmc-row { margin-bottom: 12px; } .pmc-row label { display: block; font-weight: bold; margin-bottom: 5px; } .pmc-row input { width: 100%; padding: 8px; border: 1px solid #aaa; border-radius: 6px; } .profit-margin-calculator button { width: 48%; padding: 10px; margin: 5px 1%; border: none; border-radius: 6px; background: #0a5c5a; color: #fff; font-weight: bold; cursor: pointer; } .profit-margin-calculator button:hover { background: #0d7c79; } </style> <script> function calculateMargin() { let revenue = parseFloat(document.getElementById("revenue").value) || 0; let cost = parseFloat(document.getElementById("cost").value) || 0; if (revenue <= 0 || cost < 0) { alert("Please enter valid numbers."); return; } let profit = revenue - cost; let markup = cost > 0 ? (profit / cost) * 100 : 0; let margin = revenue > 0 ? (profit / revenue) * 100 : 0; document.getElementById("profit").value = profit.toFixed(2); document.getElementById("markup").value = markup.toFixed(2) + " %"; document.getElementById("margin").value = margin.toFixed(2) + " %"; } function resetCalculator() { document.getElementById("revenue").value = ""; document.getElementById("cost").value = ""; document.getElementById("profit").value = ""; document.getElementById("markup").value = ""; document.getElementById("margin").value = ""; } </script>