Sometimes a receipt or product total already includes tax. In that case, subtracting a simple percentage directly is not always the right way to recover the original price.
The usual method is to divide the total by one plus the tax rate as a decimal. That gives the pre-tax value. The remaining difference is the tax amount.
This guide is useful for invoices, bookkeeping checks and everyday purchase breakdowns.