We currently have a calendar that needs to be blocked automatically when it reaches a certain number of events. Here is what I need it to do:
- Read the calendar
- Check the number of events each hour (events can be scheduled every hour on the hour between 8am and 2pm)
- If the number of events is greater than 6 per hour, I want to automatically create an event that same hour called "Lab Full."
- If the number of events is less than 6, I want to continue reading the calendar until it finds another instance of 6 events in an hour.
Below is what I've been able to accomplish in Power Automate.

I'm struggling with the required start and end time as it's contingent upon a particular hour. For example, the event, "Lab Full" should be created when an hour reaches six events.
Here is how my condition is set up.

If true, I have my flow set to create the "Lab Full" calendar event. If false, I have the Do until condition here.

In both examples, labBooking is an object.
Please let me know if you can offer any guidance. I'm happy to answer any follow up questions or provide clarification. Thanks in advance!