I have some unanswered questions in my description that have not been answered.Anyone can help?
Are you checking for a specific room or all rooms to accommodate someone during that period? For me, that's a significant difference, and since I like to do everything right the first time, I have to be clear about the right task.
Since you brought maximum room capacities into play, these should be documented in a table so that they can be used. I asked for a database schema that contains the necessary information. I usually don't paint something like that myself because my model certainly has nothing to do with your reality and is therefore quickly something for just the trash.
Your time is important to you, my time is important to me. The latter also means that in some cases I can be bought.