 |
 |
| Author |
Message |
HaLo2FrEeEk Overlord Extraordinaire
 Joined: 15 Aug 2006 Posts: 5782 Status: Offline Style: Xbox 360 Location: Trying really hard to do something
|
Post subject: |
|
|
Oh damn, I had this math all figured out and I can't remember it. Dreamhost takes out 5% + $0.30, I used to have a script lying around that would accept a number (how much you wanted to donate after the fees) and figure out how much you needed to actually donat. I remember that to donate $10, you have to actually donate $10.84, because 5% of 10.84 is $0.54, and the $0.30 makes $0.84, leaving the $10. I'll see if I can find it somewhere now.
Edit: I refigured it out, it's pretty simple, here is the math:
Code:
x = amount after fee (desired donation)
y = fee
y = ((x * .05) + .30) + (((x * .05) + .30) * .05)
total = x + y
I wrote a little script to make it easier (of course I did):
http://infectionist.com/misc/testing/ol...s&x=##
replace the ## at the end with the amount you want to donate AFTER the fees are taken out, so for example if you want me to get $10 after fees are taken out, replace it with 10. For 10 it will give you this return:
To donate $10 after fees, you'll need to donate $10.84.
(I just use 10 because it's a simple, even number. It's just an example : ) _________________

~HaLo2FrEeEk
I wrote:
I'm sexy, admit it.
Are you? |
|
| Monday, October 4, 2010 3:48:26 pm |
|
 |
Page 3 of 3
|
|
All times are GMT - 8 Hours Goto page Previous 1, 2, 3
|
|
Display posts from previous:
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
 |
|
|