Aggregation and disaggregation of time series