How does the calculator handle overnight shifts that cross midnight?
When the end time is numerically earlier than the start time (such as 10:00 PM to 6:00 AM), the calculator automatically assumes the shift ended the following calendar day, correctly returning 8 hours.