Filter Data for Repeating Group

Looking for a way to filter a Repeating Group I think it is rather complex but needed.

So I have 2 Things:
Unavailable ( From(Date) - To(Date) )

Adding multiple Unavailable dates ranges to a Vehicle.

Now when doing a search for specific date ranges, I can check if it overlaps with 1 “Unavailable” date range quite easily but when there is more than 1 “Unavailable” date range I don’t know how to check it too.

In the end, it should result in a list of vehicles that don’t overlap with the “Unavailable” date ranges.