I have a timer that calculates the milliseconds and I am trying to turn the motor on and off at certain times and then have it repeat. After multiple attempts I realized the problem comes from the IF statement. The motor turns on and stays on. I have a timer that calculates the milliseconds