Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get to my amount without the taxes
Message
De
26/01/2004 19:05:03
 
 
À
26/01/2004 19:01:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00870822
Message ID:
00870831
Vues:
20
This message has been marked as the solution to the initial question of the thread.
Denis,

If you know each of the tax percentages, just divide them from the total price.

you had:
((150*1.07)*1.075)= 172.54

To get the original price ($150), just divide the taxes from the total:
((172.54/1.075)/1.07)=150

Alan

>>Here's my problem. It probably has been discussed here before. I just hope that there is already a solution for it somewhere.
>>
>>In my application when a product is bought I have to add taxes to the price
>>
>>First I have to add 7% to the price.
>>This gives me an intermediate result.
>>I then have to add another 7,5% to that intermediate result which gives me the grand total.
>>
>>So if the product is $150 the intermediate result would be $160,50
>>I then take the $160,50 to add the remaining 7,5% which gives a grand total of $172,54
>>
>>Now here's the problem I want from a given total price be able to go back to the point where I have the original amout without the taxes.
>>
>>What would be the best way to obtain that original amount?
>>
>>Would it be a lot harder if there were a third tax applied to the amount?
>>
>>TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform