0

I don't know if this is the right forum to ask, but i need to have a % from an amount, and hope there is a formula to calculate it.

Example:

Some payment methods have a 1.8% fee of the total amount a user has in their shopping basket. Now i want, that if the user selects one of those payments, that they have to pay those 1.8%. but when i charge them 1.8% extra i will still have to pay for the payment method (not all, but still a bit)

e.g. a user has shopped for € 100. Now i ask 1.8% more, that's 100 x 1.018 = 101.80. But now i have to pay 1.8% of 101.80 to my "middleman". So i still only get 101.80 * 0.982 = 99.9676. Now that doesn't seem too bad, but i would like to have a percentage that i have to put on the price so i have the right amount left when i payed the fee to my "middleman".

i hope you get what i mean. I need a % = TOTAL_AMOUNT + 1.8% when i have to pay.

Refilon
  • 103

1 Answers1

2

If you want to have a net of $N$ left after the middleman takes 1.8% of the gross price, the gross price should be a number $G$ such that $$ G\times(1-0.018) = N $$ We can solve this by dividing by $(1-0.018)$ on both sides, and get $$ G = \frac{N}{1-0.018} $$

If you want to convert that to a percentage markup, calculate $$ \frac{1}{1-0.018} = 1.018330 $$ So you should mark your desired prices up by 1.833%.

  • I don't understand what your doing, but i think you are right. I will see how it works, and accept your answer :) Thanks! – Refilon Feb 04 '15 at 00:03
  • @Dennis: What do you have difficulty understanding? I could try to add more explanation if I knew more about what you have problems with. – hmakholm left over Monica Feb 04 '15 at 00:05
  • I don't really understand why you are doing the formula's. What's 0.018 for example? How do you get it? Btw, im no math expert like you guys, just wanted this for my webshop xD – Refilon Feb 04 '15 at 08:28
  • @Dennis: $0.018$ is just 1.8% written out in full. Your question shows you already know how to increase something by 1.8% by multiplying by $1+0.018$, and decrease something by 1.8% by multiplying by $1-0.018$, so I assumed that wouldn't confuse you. How do you think about the number $0.982$ that appears in your question, for example? – hmakholm left over Monica Feb 04 '15 at 10:28
  • 0.982 = 100 - 1,8 = 98.2. 98.2 / 100 = 0.982 So when i muliply by 0.982 I got TOTAL - 1,8% right? – Refilon Feb 04 '15 at 10:43
  • @Dennis: Okay -- I'm doing the same thing, just dividing by 100 earlier: $$ \frac{100-1.8}{100} = \frac{100}{100} - \frac{1.8}{100} = 1 - \frac{1.8}{100} = 1 - 0.018 $$ – hmakholm left over Monica Feb 04 '15 at 10:47
  • Okay, i think my calculation is easier for me to understand. But i thank you for your time! Thanks very much. – Refilon Feb 04 '15 at 11:03
  • I know what's confusing me. I don't know what the horizontal lines are. The big one between 100 - 1.8 and 100 and the small one between 100 and 1.8... – Refilon Aug 12 '18 at 14:16
  • @Refilon: Um, they're fraction bars. $\frac{100-1.8}{100}$ means to divide the difference $100-1.8$ by $100$. – hmakholm left over Monica Aug 12 '18 at 14:21
  • I really don't have a clue how you are calculating this. I'm trying to use another percentage, but I have no clue how you did it. I think the formulas you show are not correct? Last one 1 : 1 x 0.018 is not 1.018330... – Refilon Aug 23 '18 at 10:15
  • @Refilon: $1-0.018$ is $0.982$, and $\frac{1}{0.982}$ is $1.0183299389002...$, which rounds to $1.018330$. I don't know why you apparently want to multiply instead of subtract. – hmakholm left over Monica Aug 23 '18 at 10:53
  • Got it now, thank you very much! – Refilon Aug 23 '18 at 13:28