I tried this function Gemma but found it didn't handle times that cross midnight. For example, 22:00 - 06:00 should return 8 hours, however it returned 16 hours.
I don't know if there is a way that it can be adapted to work...I'd like to see it though, especially if it saves a few more lines...