refactors date range for building recurring event