It solely depends on your skills and experience.
The distance necessary to avoid a crash in the event that the car in front of you brakes or stops.
A distance equal to at least twice the length of your car, regardless of the speed and conditions on the road.