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

So explain to us why that answer did not help?
Have you done anything about looking at that example?
Did you understand it?
Did you see the relevance of that example to your problem?

Feedback on any or all of these points would help us help you. Do not ignore help given and ask the same question again.