Sales tax is calculated

based on the number of items purchased.

using a percentage of the price of an item.

before a sale discount is applied.

as a percentage based on federal law.