How long does it take to earn a Ph.D.?

It takes approximately 5–7 years to earn a Ph.D.