Conditional Sales Tax Calculation
I need some java script help creating a PDF form/field named "Sales Tax" that does the following:
Calculates the amount of tax from the "Search Fee" field based on "Zip" and "State" fields.
Conditions are that if the "State" field is not "NY" the sales tax rate would be zero and thus the "Sales Tax" field would read $0.00.
i.e. State: CA, Search Fee: $150.00, Sales Tax: $0.00
IF the "State" field is "NY" then it would calculate the rate based off of the "Zip" field.
i.e. State: NY, Zip: 10005, Search Fee: $150.00, Sales Tax: $13.31 (8.875% of $150)
i.e. State: NY, Zip: 10005, Search Fee: $150.00, Sales Tax: $12.94 (8.625% of $150)
Ideally the calculation would read an excel sheet with 2 columns (one for zip and for tax rate) but I would also be interested in the code that 'manually' covers the 11 sales tax rates of NY.
Any help would be great.
Thanks!
