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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement