How to modify the below code that the motor works (Turns on) for tamount of time

Hi,below is the whole program

That is the original code with the test code in place.

Please post the code that you modified to remove the test code.