How long will recovery from addiction take?

I have a friend who is going to get himself treated for his alcohol addiction. How long would it be until he recovers? When will he be able to get out of rehab?