although I cannot start it until B16 and it can end B10000

I guess I need a condition in the time formula?