Determining the operating hours