Hi JL,
Here's an example that may fit your needs:

J: Date & Time values, entered as time part only.
K: Date & Time values, entered as time part only.
Best practice is to enter each of these values (as time part only) on the day that the action occurred. The formula will also correctly calculate the duration for duty periods where actual on and off times are on consecutive dates, but both have been entered on the same calendar date, provided the time of day of 'off' is less than the time of day of "on" (as in examples in rows 3 and 4).
L: Formula to determine length of the duty period in hours and minutes.
This formula is shown below the table. Note that the durations to be added are enclosed in quotation marks, necessary to hold the unit label.
M: Minimum rest period, calculated with this formula:
M2: MAX(Table 2::$A$2,L2)
MAX compares the length of the duty period with the minimum rest time in cell A2 of Table 2, and returns the larger of the two values. The reference cell holding the fixed minimum rest duration is required, but may be an unused cell on the main table if desired.
N: Next available, calculated with this formula:
N2: K2+M2
This adds the duration of the rest time in M2 to the date and time value in K2 to determine the date and time when the person will next be available for duty. Note that correct calculation of the Date part requires that the "off" time is entered ON the date that the person goes off duty.
Regards,
Barry