How do I get my loop to cycle multiple times?

I need it to delay a little bit because the motor needs to run for a certain amount of time.