When traveling at highway speeds on a dry road, a safe following distance is at least:

In general, when driving on a dry highway, a four-second following distance will provide adequate time to steer or brake to avoid a hazard.
DMV Writen Test