Image not available

360x288

0x5bdng3qk591.gif

๐Ÿงต Untitled Thread

Anonymous No. 16124146

Rather complicated (or simple?) math question. How do I get the RESULT number I want minus a percentage +$ amount fee. Say there is a 2% surcharge for processing, +$.20 for every transaction, but I want to make sure that what the seller receives is a round $50 after all the fees. How do you do this other than just trial and error?

Image not available

900x582

1543605273403.jpg

Cult of Passion No. 16124154

>actually shutting up and calculating
My way is easier.

Anonymous No. 16124230

This is just a simple algebra problem. Let x be the unit cost, s percentile surcharge, t the flat transaction fee, and y the total cost. Then we have

y = xs + t

Makes sense so far? Right now, x is our input and y is our output, while s and t are sort of like constants. We want y to be our input and x to be our output. So let's solve for y

y = xs + t
y - t = xs
(y - t)/s = x

Let's try it with the numbers you mentioned. s = 1.02, t = 0.20, y = 50.

Then x = (50 - 0.20)/1.02 = 48.82

Let's make sure this actually worked.
$48.82 plus a 2% surcharge is 102% of $48.82, i.e
48.82ร—1.02 = 49.80
Then adding a $0.20 surcharge, we get $50.

Anonymous No. 16124248

>>16124146
Why does he need a path integral to win at blackjack

Anonymous No. 16124260

>>16124230
I think you misunderstood what I was saying. I don't want the total amount with all the surcharges to be my chosen amount. I want the NET the seller RECEIVES to be the desired amount MINUS the all the surcharges.

Image not available

150x29

file.png

Anonymous No. 16124431

>>16124146
?