When driving at speeds under 30 mph, keep a minimum following distance of:

The more distance between your vehicle and others, the more time you will have to react if another driver makes a mistake. Keep a minimum following distance of two seconds when driving slower than 30 mph, under normal conditions.
DMV Writen Test