How to adjust a time
When the result crosses midnight, the day offset appears alongside the time.
Example
Adding 30 minutes to 23:45 gives 00:15 tomorrow. Subtracting 45 minutes from 00:20 gives 23:35 yesterday.
Method
Convert the starting time and duration to seconds. Add or subtract, then split the result into a day offset and time of day.