refactoring algorithm for searching dates - app now accurately suggests dates that you can schedule your appointment