How close is too close to follow someone when driving?

I’m curious on what folks were taught