User Tools

Site Tools


tips:java:salestaxcalc

Calculating Sales Tax and Discounts

To calculate sales tax use:

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

To calculate a discount use:

((discount * -.01) + 1) * price
tips/java/salestaxcalc.txt · Last modified: 2009/06/08 11:45 by erik