When riding under ideal conditions, you should maintain a minimum following distance of:

Under normal conditions, you should maintain a following distance of at least two seconds. Increase your following distance any time conditions are less than perfect.
DMV Writen Test