Sorry, just trying to get my head around this - So would it be something along the lines of (ignoring the days for the time being), if start time > bucket start time, start time, and if end time < bucket end time, use end time, then calculate (sort of)?
Sure, generally one intersects two intervals by doing something like: ```py inter_start = max(bucket_start, time_start) inter_end = min(bucket_end, time_end) inter_time = max(0, inter_end - inter_start) ```