When I apply a coupon the tax calculates like that: Original price x tax amount Original price - discount Discounted price + tax amount = total If you give 100% discount you will see that an amount will be = tax amount (doesn't make sense) Should be like that: Original price - discount x tax amount = total So something like that