๐งต Untitled Thread
Anonymous at Thu, 11 Apr 2024 13:35:35 UTC 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?
Anonymous at Thu, 11 Apr 2024 14:44:13 UTC 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 at Thu, 11 Apr 2024 14:54:40 UTC No. 16124248
>>16124146
Why does he need a path integral to win at blackjack
Anonymous at Thu, 11 Apr 2024 15:07:00 UTC 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.
Anonymous at Thu, 11 Apr 2024 17:08:51 UTC No. 16124431