'Google Sheets: Query data with HH:MM format
Solution 1:[1]
I feel you should change your source data so that the shift pattern is formatted to include both date and time. Then follow this procedure to do the correct arithmetic:
https://www.ablebits.com/office-addins-blog/2017/10/19/calculating-time-google-sheets/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mervyn |

