Apply a loyalty discount to a subtotal and then add sales tax.
The member discount is subtracted from the subtotal first, then the sales tax is applied to the reduced amount. Loyalty discounts usually apply before tax, so this order matters and is exactly how most checkout systems bill it.
Customer Discount
Discount = subtotal x rate%; total = (subtotal - discount) x (1 + tax%)
Discount = subtotal x rate%; total = (subtotal - discount) x (1 + tax%) The member discount is subtracted from the subtotal first, then the sales tax is applied to the reduced amount.
Loyalty discounts usually apply before tax, so this order matters and is exactly how most checkout systems bill it.
This calculator takes 3 inputs: Subtotal, Customer discount, Tax rate. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.