Google Earth Hacks Forums  

Go Back   Google Earth Hacks Forums > Google Earth > Google Earth Applications > GEwar > Bugs

Bugs If you have found a bug with GEwar, please let us know about it here.

 
 
Thread Tools Display Modes
Old 09-20-2005, 10:11 PM   #1
elk-tamer
Member
 
Join Date: Aug 2005
Posts: 93
Default Financial Overview - small bug

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.)
elk-tamer is offline  
Old 09-20-2005, 10:30 PM   #2
Beezer
Master of the Universe
 
Beezer's Avatar
 
Join Date: Aug 2005
Location: In a house
Posts: 524
Default

If that's how much money you have in the bank, I want to be one of your allies!!
Beezer is offline  
Old 09-20-2005, 10:40 PM   #3
elk-tamer
Member
 
Join Date: Aug 2005
Posts: 93
Default

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.
elk-tamer is offline  
Old 09-21-2005, 12:04 AM   #4
Mickey
Administrator
 
Mickey's Avatar
 
Join Date: Jun 2005
Posts: 2,328
Default

Quote:
Originally Posted by elk-tamer
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.

Quote:
If that's how much money you have in the bank, I want to be one of your allies!!
Me too!
Mickey is offline  
Old 09-21-2005, 12:24 AM   #5
elk-tamer
Member
 
Join Date: Aug 2005
Posts: 93
Default

Quote:
Originally Posted by Mickey
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?
elk-tamer is offline  
Old 09-21-2005, 12:57 AM   #6
palau
Member
 
Join Date: Sep 2005
Posts: 48
Default

Quote:
Originally Posted by elk-tamer
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/foru...7&page=2&pp=15

- palau
palau is offline  
Old 09-21-2005, 01:36 AM   #7
elk-tamer
Member
 
Join Date: Aug 2005
Posts: 93
Default

Quote:
Originally Posted by palau
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/foru...7&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?
elk-tamer is offline  
Old 09-21-2005, 02:13 AM   #8
Mickey
Administrator
 
Mickey's Avatar
 
Join Date: Jun 2005
Posts: 2,328
Default

Quote:
Originally Posted by elk-tamer
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.
Mickey is offline  
Old 09-21-2005, 02:49 AM   #9
elk-tamer
Member
 
Join Date: Aug 2005
Posts: 93
Default

Quote:
Originally Posted by Mickey
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.
elk-tamer is offline  
Old 09-21-2005, 04:01 AM   #10
rasqual
Senior Member
 
rasqual's Avatar
 
Join Date: Jul 2005
Posts: 459
Default

Quote:
Originally Posted by Mickey
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
rasqual is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.