Simplified method of determining when to update

Changing it also fixed a bug where updates wouldn't happen from midnight
onwards because the time since the last update became negative