User Tools

Site Tools


tips:java:salestaxcalc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tips:java:salestaxcalc [2009/06/08 04:45] (current)
erik created
Line 1: Line 1:
 +====== 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 04:45 by erik