A set of scripts to calculate time offsets