Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A common tax scenario
Message
De
23/05/2012 08:44:33
 
 
À
23/05/2012 08:41:11
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01544104
Message ID:
01544131
Vues:
40
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform