How long does bad credit last?

How long does bad credit last?