Determine if a datetime in one model is within a datetime range of any row in another model

I decided to just brute force this with javascript since the community was silent. If anyone has an idea on how to do this declaratively, I’m love to hear it!