improve: Missing case when an event started before interval and ends after