Sub topic 9
Checking cost, margin, and discount limits
This chapter assumes you can compute percentages, you know your own delivery costs, and you have already chosen a pricing model for the deal. You will learn how to test a price against cost before it reaches the buyer, how to set discount limits, and how to avoid the errors that quietly erase profit.
Why check before you send
A quote is an offer. If the buyer accepts it, you are bound to the price, whether or not it covers your costs. Checking cost and margin before sending is the last point where a mistake is cheap to fix. After the buyer says yes, the only way to repair a bad price is to renegotiate, which damages trust.
The check answers three questions:
- What will it cost us to deliver this?
- What share of the price is left after that cost?
- Is that share above the minimum the company allows?
Cost, price, margin, and markup
Four terms are often mixed up. Define them once and use them the same way everywhere.
- Price is the amount the buyer pays, before tax.
- Delivery cost is what it costs you to deliver the deal: staff time, licenses you resell, hosting, travel, subcontractors, and payment fees.
- Gross margin is price minus cost, divided by price. It is the share of the price you keep.
- Markup is price minus cost, divided by cost. It is the amount added on top of cost.
Margin and markup use the same profit but different denominators, so they give different numbers.
| Cost | Price | Profit | Gross margin | Markup |
|---|---|---|---|---|
| 5,100.00 | 7,650.00 | 2,550.00 | 33.3% | 50.0% |
| 5,100.00 | 6,375.00 | 1,275.00 | 20.0% | 25.0% |
A common error is to say "we add 30% to cost" and then report that as a 30% margin. A 30% markup gives a margin of about 23.1%. If your company's floor is a 30% margin, you must price at cost divided by 0.70, not cost times 1.30.
What belongs in delivery cost
Cost is where most margin errors start. An incomplete cost means a margin that looks healthy and is not. Include:
- Direct labor: hours multiplied by the internal cost rate of each person, not the rate you bill.
- Third-party items: resold licenses, hardware, subcontractors.
- Variable operating cost: hosting, support tickets expected during the term, data transfer.
- Expenses: travel, training materials, and payment processing fees.
- Risk allowance: a percentage added for uncertainty when scope is loosely defined.
Leave out costs that exist whether or not you win the deal, such as office rent. Those are covered by the overall margin floor, which the company sets high enough to pay for them.
Checking the margin in code
The next script calculates margin on the discounted net price from the worked quote used in this tutorial. It uses Decimal for the same reason as the quote calculation: floating-point numbers can produce small rounding errors that matter when a result sits close to a limit.
from decimal import Decimal
def gross_margin(price, cost):
return (price - cost) / price
net_price = Decimal("7650.00")
delivery_cost = Decimal("5100.00")
minimum_margin = Decimal("0.30")
margin = gross_margin(net_price, delivery_cost)
print(f"Gross margin: {margin:.1%}")
print("Approved" if margin >= minimum_margin else "Needs review")The output is a gross margin of 33.3% and "Approved", because 33.3% is above the 30% floor.
The script has one weakness. It divides by price, so a price of zero raises an error. In a real tool, reject a zero or negative net price before calling the function. A free pilot, for example, should go through an explicit exception path, not through this calculation.
Setting the discount limit
A discount limit is the largest reduction a person may offer without approval. You can derive it from the margin floor instead of picking a round number.
The highest allowed discount is the one that brings margin down to exactly the floor:
minimum price = cost / (1 - minimum margin)
maximum discount = 1 - (minimum price / list price)For the worked quote, the list subtotal is 8,500.00 and the cost is 5,100.00. With a 30% floor, the minimum price is 5,100.00 / 0.70, which is about 7,285.71. The maximum discount is therefore about 14.3%. The 10% discount in the quote is inside that limit. A 15% discount is not.
This script computes the limit for any deal.
from decimal import Decimal, ROUND_HALF_UP
def max_discount(list_price, cost, minimum_margin):
minimum_price = cost / (Decimal("1") - minimum_margin)
return Decimal("1") - minimum_price / list_price
list_price = Decimal("8500.00")
cost = Decimal("5100.00")
floor = Decimal("0.30")
limit = max_discount(list_price, cost, floor)
print(f"Maximum discount: {limit.quantize(Decimal('0.001'), rounding=ROUND_HALF_UP):.1%}")Running it prints Maximum discount: 14.3%.
Tiered approval
Most companies do not give every salesperson the same authority. They define tiers, where larger discounts need a more senior approver.
| Discount | Margin condition | Who approves |
|---|---|---|
| Up to 10% | Margin at or above floor | Salesperson |
| 10% to 15% | Margin at or above floor | Sales manager |
| Above 15% | Any | Finance and sales director |
| Any | Margin below floor | Finance and sales director |
The last row matters. A small discount can still breach the floor when the deal was thinly priced to begin with, so check both conditions. A discount percentage on its own does not tell you whether the deal is profitable.
Protecting margin without cutting price
When a buyer pushes for a lower price, the margin check shows you the room you have. Before reducing price, consider changes that reduce your cost or the buyer's scope instead:
- Remove a deliverable and list it as excluded.
- Lengthen the payment schedule only if it does not change your cost of capital beyond what the deal can bear.
- Offer a longer commitment term in exchange for a lower unit price.
- Offer a discount tied to a condition, such as signing before the validity date.
A concession should always buy something. Giving a discount with nothing in return teaches the buyer that the first price was negotiable.
Common errors
- Margin on the wrong base. Margin calculated on the list price instead of the discounted price overstates profit. Always use net price after discount.
- Stacked discounts. A 10% volume discount followed by a 5% promotional discount is not 15%. Applied in sequence it is 14.5%, and the approval tier depends on the total. Calculate the combined effect and check the limit against it.
- Missing costs. Forgetting subcontractor fees or payment processing makes margin look better than it is.
- Cost estimates that never update. If scope changes during negotiation, recompute cost. A revised quote with the old cost figure is unchecked.
- Rounding at the wrong step. Round each currency amount to two decimals when it is stated on the quote, and run the margin check on those same rounded amounts so the check matches the document.
A worked check of a revised request
The buyer asks for 15% off the original 8,500.00 subtotal. The net price becomes 7,225.00. With a cost of 5,100.00, the margin is (7,225.00 − 5,100.00) / 7,225.00, which is 29.4%. That is below the 30% floor, so the quote needs escalation even though the buyer's request looks modest. A counter-offer that keeps the discount at 10% and adds a free training session worth 300.00 at cost can keep margin above the floor if the extra cost is small. Recompute with the added cost of the session before you offer it.
Exercise
A deal has a list price of 12,000.00 and a delivery cost of 7,800.00. The margin floor is 35%. What is the maximum discount you can offer without breaching the floor, and is a 20% discount allowed?
Show answer
The minimum price is 7,800.00 / (1 - 0.35) = 12,000.00. The maximum discount is 1 - 12,000.00 / 12,000.00 = 0%. No discount is possible, so a 20% discount is not allowed. The list price already sits exactly at the floor, so the deal needs a lower cost or a higher list price before any discount can be offered.
Exercise
A salesperson applies a 10% volume discount and then a 5% promotional discount to a 10,000.00 list price. What is the net price, and what is the combined discount percentage?
Show answer
After 10%, the price is 9,000.00. After 5% off that, the price is 8,550.00. The combined discount is 14.5%, not 15%. Approval tiers should be checked against 14.5%.