R
R
rinaz222021-08-20 18:45:46
Mathematics
rinaz22, 2021-08-20 18:45:46

How to find the amount taking into account the commission, so that later you get the amount without commission?

Hello. I want to connect a payment system to the site. There is no item in the settings who pays the commission. I want to add a commission to the final cost.
Commission: 2%
If, for example, for payment without commission: 1000 rubles, then what will be the commission with + 2%.
1000 + 2% = 1020 is not good, because the system will subtract 2% from 1020 and in the end it will turn out: 999.6 and it should turn out exactly 1000

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2021-08-20
@rinaz22

1000/98*100

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question