Depends on the levels of dedication and aptitude !
That's like asking "How long does it take to learn to play the guitar?" What like a monkey? or like Eric Clapton?
I've worked in many corporate IT departments with veterans with 10+ years "experience" who couldn't hold a match to a motivated 15 yo hacker.