Iterable<ClosingRange> filterByEndDate(DateTime end) => where((e) => e.end.isBefore(end) || e.end.isAtSameMomentAs(end));