Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A common tax scenario
Message
From
23/05/2012 08:44:33
 
 
To
23/05/2012 08:41:11
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01544104
Message ID:
01544131
Views:
39
>>Let B = base amount = $500
>> T = tax amount = $74.88
>> F = Federal tax % = 5
>> P = Provincial tax % = 9.5
>>
>>
>>if we know T, F and P then B can be derived as follows:
>>
>> B = (T*100) / ( F + P + (F*P)/100)
>>
>>Having derived B you can the calculate the Federal tax amount as B * (F/100)
>>and the Provincial Tax amount as B * (1+(F/100)) * (P/100)
>
>Thanks
>
>This is close but does not give the exact amount:
>
>(74.88*100) / ( 5 + 9.5 + (5*9.5)/100)
>
>...gives 500.03$
>
>I tried something like that last night but was never able to obtain the exact number.

The way to do that is towards the end of Re: Decimal precision Thread #1544101 Message #1544116
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform