To calculate sales tax use:
((taxRate * .01) + 1) * price
To calculate a discount use:
((discount * -.01) + 1) * price