Change how to check the invalid time interval for the lunch