There's an issue with the time_gap function. It only returns a value when there's a difference between the compared times. If there's no difference, the function returns nothing.
To address this, we can loop through a range of three values (0 to 2) and replace any empty responses with "00".