A Simpler Way

D

DS

Is there a impler way to do this? I need to get the Tax Amount for items
that are Tax Inclusive, Tax Exclusive and after discounts when needed. Any
help or direction appreciated.
Thanks
DS

'Figure Out Tax
Tax Before Discount
Exclusive
(Quantity * Price)* [TaxRate]
Inclusive
(Quantity * Price)-(Quantity * Price)/(1+[TaxRate])

Tax After Discount
Exclusive
Select Case DP ' Dollar or Percent Discount
Case 1
(Quantity * Price)+(Quantity * DiscountAmount) * [TaxRate]
Case 2
((Quantity * Price)*DiscountPercent)-(Quantity * Price) * [TaxRate]
End Select

Inclusive
Select Case DP
Case 1
(Quantity * Price)/(1+[TaxRate]+(Quantity *
DiscountAmount)*[TaxRate]
Case 2
(Quantity * Price)/(1+[TaxRate])*DiscountPercent-(Quantity *
Price)/(1+[TaxRate])*[TaxRate]
End Select


Just for argumants sake
Price is $5.00
Exclusive Price is $5.00
Inclusive Price is $5.00 / (1+[TaxRate])
Tax is .0825
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top