Stop motor after 3 seconds

I want a Arduino code

To run a Dc motor for 3 seconds

Talk to this guy -s/he only wants two seconds, but the change should be trivial (though I'd swap the initial pinMode and digital write - YMMV)