Following on form this response

I am still not sure how to achieve a “similar” outcome. I have some events that span over a few days. A single day event is easy to calculate with subtraction, but how would I best approach the following scenario.

An events starts at 08:00am on Monday and ends at 05:00pm on Tuesday (or Wed, etc) how would I calculate just the 8-5 hours for each day? Its breaking by brain

Any thoughts?