Hello
I need a way to retrieve a profit margin (already applied to) a given amount, knowing that this margin also has taxes apply to it. I'll do an example to expain :
Let's say we have 1000$ base price and need to apply a 10% profit margin :
1000 / (1 - 0.10) = 111.11$
Apply (Quebec, Canada) Taxes :
111.11 * 0.05 = 5.56$
(111.11 + 5.56) * 0.095 = 11.08$ (the provincial tax apply on top of the base price added to the federal tax)
Now, given the amount 1127.75 (base price + margin) and knowing the margin is 10%, how can I extract the margin amount of 127.75 and get that 1000 base price?
Help will be greatly appreciated !
I need a way to retrieve a profit margin (already applied to) a given amount, knowing that this margin also has taxes apply to it. I'll do an example to expain :
Let's say we have 1000$ base price and need to apply a 10% profit margin :
1000 / (1 - 0.10) = 111.11$
Apply (Quebec, Canada) Taxes :
111.11 * 0.05 = 5.56$
(111.11 + 5.56) * 0.095 = 11.08$ (the provincial tax apply on top of the base price added to the federal tax)
Now, given the amount 1127.75 (base price + margin) and knowing the margin is 10%, how can I extract the margin amount of 127.75 and get that 1000 base price?
Help will be greatly appreciated !