Properly calculate time deltas (forgot the days)

Fixes #313