reduceDatesToRange

fun reduceDatesToRange(dates: List<Date>, start: Date?, end: Date?, totalIntervals: Int): List<Date>