Hi, I'm using excel to write down my shifts and get a total of worked hours per day and per week.
I have it structured this way:

screen.png

Everything seemed to work fine until I finished to work at 12.30 am.. The result with my formula was -17 hours instead of 7. How can I fix my formula so that it displays a correct amount?