Calculating Sales Tax and Discounts

To calculate sales tax use:

((taxRate * .01) + 1) * price

To calculate a discount use:

((discount * -.01) + 1) * price