Formula to calculate Price of Service

85 Views Asked by At

I would like some help in elaborating a formula for a service I will be providing to a retailer's client.

In simple terms, I would be paid a $5\%$ percentage over the price of the client's purchase, with a minimum cost of service of $2$ and a maximum of $10$.

It is important to say the comission would be paid by the client, so the amount would be added to the client's total cost.

Here are some examples:

If a client makes a purchase of $20$ and picks the service, he will pay a total of $22$;

If a client makes a purchase of $40$, he will pay a total of $42$.

If a client makes a purchase of $80$, he will pay a total of $84$.

If a client makes a purchase of $199$, he will pay a total of $208.95$.

If a client makes a purchase of $1000$, he will pay a total of $1010$.

1

There are 1 best solutions below

0
On

If I well understand the cost of your service is: $$ \begin{cases} y=2 \qquad \qquad \qquad\qquad \quad for\qquad 0<x\le 40\\ y=2+0.05(x-40) \qquad for \qquad 40<x\le 200\\ y=10 \qquad \qquad \qquad\qquad for\qquad x>200 \end {cases} $$ If you want you can express this with asingle expression as $$ y=10+0.5(2+0.5(0.05(x-40)+|0.05(x-40)|)-10-|2+0.5(0.05(x-40)+|0.05(x-40)|)-10|) $$ ( see the graph here) and add this to the purchase, but it does not seems a good idea to me.