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

Thanks and seems you tired. sorry for all troubles I force on you

May you let me know how I can set the code to print or not print what I am looking for in IDE serial monitor?

I tried to use // in front of all lines which I thought that should be related the printing but no success.

Regards