creation of date_ranges