PDA

View Full Version : Financial Overview - small bug



elk-tamer
09-20-2005, 09:11 PM
On the Financial Overview page, it lists the interest from the World Bank as something like:
252,557.00 Geos in the bank = 9471.00 Geos per day at a rate of 3.75%.

But that is just .0375 * 252,557

If the interest is compounding every 5 minutes, it should be more like:

Amt = Principal* ( 1 + 0.0375/288)^288

(or 9650 in this case.)

Beezer
09-20-2005, 09:30 PM
If that's how much money you have in the bank, I want to be one of your allies!! ;)

elk-tamer
09-20-2005, 09:40 PM
Those were just examples numbers, but I am saving up for a scripted, all out blitz against a certain player whose initials may or may not be "War_Peace".

It may be useful to send money to whoever has armies in the right locations and has shown a preference for attacking certain players before hand.

Mickey
09-20-2005, 11:04 PM
On the Financial Overview page, it lists the interest from the World Bank as something like:
252,557.00 Geos in the bank = 9471.00 Geos per day at a rate of 3.75%.

But that is just .0375 * 252,557

If the interest is compounding every 5 minutes, it should be more like:

Amt = Principal* ( 1 + 0.0375/288)^288

(or 9650 in this case.)

True. However, it doesn't do it exactly every five minutes, so you lose a bit of money there. It still works out to slightly more than shown, but not as much as true 5 minute compounding would yield.


If that's how much money you have in the bank, I want to be one of your allies!!
Me too! :)

elk-tamer
09-20-2005, 11:24 PM
True. However, it doesn't do it exactly every five minutes, so you lose a bit of money there. It still works out to slightly more than shown, but not as much as true 5 minute compounding would yield.


Me too! :)
Is it more often than every 10 minutes? 6 minutes?

palau
09-20-2005, 11:57 PM
On the Financial Overview page, it lists the interest from the World Bank as something like:
252,557.00 Geos in the bank = 9471.00 Geos per day at a rate of 3.75%.

But that is just .0375 * 252,557

If the interest is compounding every 5 minutes, it should be more like:

Amt = Principal* ( 1 + 0.0375/288)^288

(or 9650 in this case.)

Not really! It is a matter of definition. The rate is daily so the overview is correct. The 5-minutes rate then should be smaller than 0.0375/288 to get the correct (after compounding) 3.75% daily rate.

You can also check this thread:
http://www.googleearthhacks.com/forums/showthread.php?t=2447&page=2&pp=15

- palau

elk-tamer
09-21-2005, 12:36 AM
Not really! It is a matter of definition. The rate is daily so the overview is correct. The 5-minutes rate then should be smaller than 0.0375/288 to get the correct (after compounding) 3.75% daily rate.

You can also check this thread:
http://www.googleearthhacks.com/forums/showthread.php?t=2447&page=2&pp=15

- palau
The information on that thread appears to be incorrect. Why should the 5 minute rate be smaller than .0375/288?

Mickey
09-21-2005, 01:13 AM
Is it more often than every 10 minutes? 6 minutes?

It's the first hit on the server after five minutes. I would say most times it's before 5 minutes and 10 seconds, but during the slow times it might be a bit longer.

The point I raised is that even if it was six minutes since the last update, you still only get paid (or charged, in the case of army upkeep) for five minutes worth. Over the course of a day, this can add up a bit.

I've thought of ways to fix it, but I'm not sure I will. I like things to be a bit random so people can't out-think it too much. :)

elk-tamer
09-21-2005, 01:49 AM
It's the first hit on the server after five minutes. I would say most times it's before 5 minutes and 10 seconds, but during the slow times it might be a bit longer.

The point I raised is that even if it was six minutes since the last update, you still only get paid (or charged, in the case of army upkeep) for five minutes worth. Over the course of a day, this can add up a bit.

I've thought of ways to fix it, but I'm not sure I will. I like things to be a bit random so people can't out-think it too much. :)

The fix would likely be to keep track of the time, then add

Principal * ( 1 + 0.0375/PofD)^PofD

(Where PofD [Portion of Day] = time in one day / time elapsed)

But as you say, a bit of randomness does no harm.

rasqual
09-21-2005, 03:01 AM
I've thought of ways to fix it, but I'm not sure I will. I like things to be a bit random so people can't out-think it too much. :)I can't believe I'm not beating the realism drum, but in this case the notion that the guy writing the bank's code enjoys some humor at the depositors' expense provides worthwhile amusement. ;-)

It might not be so funny if a guy I know hadn't just picked up a SQL job with the Federal Reserve. ;-D