How the calculation works
Discount = amount × percentage. Tax is applied to amount minus discount.
A worked example
A 200 price with 10% discount and 5% tax becomes 189: subtract 20, then add 9.
Use the result carefully
A payment already received is not a discount. Record deposits separately so you do not reduce the agreed price or subtract the payment twice.