The correct Tax setting depends on the requirements of your local Tax laws.
Tax can be calculated before or after applying a discount.
When this option is ON, the tax is calculated before the discount is applied.
When this option is OFF, the tax will be calculated after the discount is applied.
This setting can be modified on each item and also on each invoice.