Proper discount
-
I'm doing Math wrong..... Old version on the right, new version on the left.
The action is to upgrade from a $150 badge to a $300, applying a 10% discount.
Is the one on the right doing it wrong or is the left wrong?For the life of me, despite looking at the code and typing it in the calculator, I have no idea how the one on the right is arriving at $140...
The formula (I believe) should be (NewPrice-OldPrice)(1-Discount), right?
So, (300-150)(1-0.9) = 135....
-
@Tsaukpaetra Yes, the new version is doing it right. Price of upgrade is $150. 10% is $15. $150 - $15 = $135.
-
Turns out I'm a retard. The promo code I used on the right is for 10 dollars off and not 10 percent.
What a little thing to miss, a symbol on the left versus a symbol on the right...