Looks like you want to do this: Time Series Forecasting