Appointment slots widget does not count correctly