Bug in service period and the availability

Your screenshots don’t show any service times definition rules.
One of the following rules you must use.
Service period for hosts or Service period for services
Important point you need to remember if you now define service periods. Only time periods already existing can be used to make such an calculation as the core remembers when a period starts and ends.
If you now define a new time period then it is only possible to use this period from now on for calculations.