Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tax Formula

Status
Not open for further replies.

simba327

MIS
Dec 4, 2002
17
0
0
US
Massachusetts wants us to round SUTA and training taxes that employers pay. We have a formula that ends with ANSWER=-TAXABLE_GROSS*PERCENT% to figure out both. How can I say that the answer is the integer value of (-TAXABLE_GROSS*PERCENT%) if the fractional value is < .5; and the answer is the integer value + 1 if the value of (-TAXABLE_GROSS*PERCENT%) is more than > .5??
 
Figured it out. Had to change the line from ANSWER=-TAXABLE_GROSS*PERCENT% to "Z =-TAXABLE_GROSS*PERCENT%"
"ANSWER = INT(Z - 0.5)" Works fine now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top