Interest compounding starting at a certain date
Hi folks,
I'm working on a small applet, and I was seeking a bit of guidance before I jumped in too deep into it.
In itself, it's pretty simple. I have an initial dollar figure, and it's growing by x every second. It started a few days ago, and I would like the Flash movie to keep up with it live, so when someone accesses that site, it shows the current amount.
I could use getTime, but it shows the actual time, not the time elapsed. And I could use the Date object or setDate, but I'm not sure if it would do any good, either.
I guess what I need is the amount of seconds that have elapsed since the original date. Once I have that, I think the interest-compounding might be easier.
Of course, this might all be crazy talk.
Any help would be much appreciated!
Thanks in advance!
Napo