While driving, you should look 10 to 15 seconds ahead of you:

To avoid last-minute moves, scan the road 10 to 15 seconds ahead of your vehicle so you can see hazards early. Constantly staring at the road right in front of your vehicle is dangerous.
DMV Writen Test