Demand Forecasting by Temporal Aggregation