Demand forecasting using time series analysis