Adding time and date periods for aggregates