How closely should I follow the car ahead of me?

They keep going faster and I don't get it, am I going too slow or too fast??