I want to count how many parties partially overlap a fixed range that includes midnight. I know the start/stop times of the parties.
So for example, if a party starts at 7pm and goes until 1 am, it would fit my fixed range of 5pm-5am and be tallied.
I would ideally like to create a function that checks both times as conditions, and counts it once if at least one overlaps the range I'm interested in. Is this possible? I can also imagine a scenario where I look at the first list of start times, filter, and then check the second list of end times.
All the solutions I see floating around are for one time in between ranges, and rarely account for midnight.
Bookmarks