Follow the vehicle ahead of you at a distance of at least:

Vehicles being struck from behind is a common occurrence on the roadways. To avoid this hazard, leave a minimum two-second interval of space between you and the vehicle ahead of you.
DMV Writen Test