Make getAvailabilityDay logic independent of end date