Under ideal driving conditions, you should maintain a following distance of at least:

Under ideal driving conditions, you should maintain a following distance of at least three to four seconds. If roads are slippery, your following distance should never be less than four seconds. Any time conditions are less than perfect, you should increase your following distance.
DMV Writen Test