At some point you will need to do anything from simple to complex math calculations. This video explains how I use php math functions to keep tabs on a script that will run for about 70 days.
Visit the sites
http://mapdoggy.com
and mine
http://lenfarneth.com