How long does it take to get over a cocaine addiction?

I’m watching a movie right now about a cocaine addiction, and I’m curious as to how long it takes for a person who is addicted to cocaine to get over it completely. What happens to a person who stops using? Like what happens to their body?
Thank you for the info so far..

But does anyone know the typical time it takes a person to feel normal again when they try to stop using? Like the typical time period of vomiting, achy, etc. before feeling normal again?

More Meth Drug Addiction Info: