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

if i wanted someone to write code for me i wouldn t need to come here. I am asking for help if that helped i wouldn't be returning to this post to ask for help.