This is generally caused by breaks or appointments outside the appointment window or if the appointment length does not match the appointment length set in Program Options.
Fix/delete invalid appointments that do not match the settings in the Office Hours Program Options.