how do i make motors run for a set amount of time