rolling interval demand calculation