Your Time Math Is Wrong: Why Hours and Minutes Break Your Code
Subtracting two times looks like the easiest code you will write all week. A shift starts at 9:30 and ends at 17:45, so the answer is 8 hours and 15 minutes. Any developer can do that in their head, w