Hiya Feloussa
If you mean how long does it take to be fluent, perfect and indistinguishable from a native speaker, I'd say that could take a lifetime. If you mean capable of doing anything in the language, then it could only take a couple of years. It also depends on age- children can pick...