What is the longest time to wear braces?

I'm 18 and my teeth are really bad and I have to wear braces but I'm afraid doctor may say 5 or 6 years.
What is the longest time to wear braces?
Post Opinion