Dynamic demand forecasting model for inventory