i have a lot of data that has at start time and a finnish time. These are formated i datetime format.

i want to sum the time that occurs in an timeinterval

if specify the time interval 08-11
i only want to get the time between these to even if the evvent progresses from 06 to 12