If you are driving when weather, road, and traffic conditions are not ideal, keep a minimum following distance of:

There are situations when you need more space in front of your vehicle than usual. Increase your following distance to at least four seconds when driving conditions are not ideal.
DMV Writen Test