Forward (add tax)
Total = Net × (1 + rate).
Reverse (back out tax)
Net = Total ÷ (1 + rate). Do not subtract the rate from the total — that gives the wrong base.
When totals include service fees
If service fees are taxable, include them in the base before applying the rate.