Hi all!
I have certain data (see three example rows below) with a column "start(time)" and a column "stop(time)".
I would like to calculate the seconds within every hour between 08:00:00 and 24:00:00 (or 00:00:00).

I know that I am working very inefficient on this workflow as I am using many (many many formula tools.
The first formula I use:
The second formula I use

The third formula:

The fourth formula:

Because I need to do this for all of the other hours, this is not really a nice way.
Furthermore, I don't know how to incorporate the stop time.
Could you please support me with this?