I'm pretty sure there is python builtin support for this, like:

http://docs.python.org/2/library/datetime.html#datetime.timedelta

That would make our code a bit more robust.