Control PWM motor running time with millis

Please post the whole program as it is now