How do I calculate a time range that crosses midnight?
Leave Treat an earlier end time as the next day selected when the range crosses midnight. Clear it only when you intentionally want the same-day subtraction shown as a negative duration.