Fixed a stupid error with time calculations...