Expected result on above raw data 3 is not correct , need 9 , this means it should count the max continous not sold , the formula is
doing the task on the last sale , instead it should look into regardless last sell be it even previous