Direct answer
Why suggested tips can be confusing
A payment screen may calculate a suggested tip on the pre-tax subtotal, the after-tax total, the amount before a discount, or the amount after a discount. A small change in the base can change the tip amount.