Updated genAvailableTime()