Correcting the time difference calculation by taking into account that there is no year 0
License: CC BY-NC-SA by Khan Academy