How to Calculate Hours for an Overnight Shift in Power Apps
A shift from 22:00 to 06:00 lasts eight hours, but on one day's clock 06:00 comes before 22:00, so a plain subtraction goes negative. When the finish time is earlier than the start, put it on the next day, then count the minutes between the two moments.
