aggregate to look at date range (still messy)