Range search for previous and next occurrence.

Created functions for finding the previous and next schedule occurrence,
within a specified date range.