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

1- I don't know how to post the code in the code tag. please teach me if necessary

2- how should I comment out the test section rather than deleting it?

3- My OS is windows XP professional second edition and the version of IDE that I use is 1.6.12

1 - read read this before posting a programming question. There is also a link to it at the top of the forum page

2 - put // in front of each line

3 - Google for arduino xp error. It is a known problem