This really depends on where you are right now, the materials and support you use, and how much time you are willing to devote per week.
In general, if you have time, I suggest you start 3-4 months before. That gives you plenty of time so you can prepare without rushing, and "taking your time" in the process without having to stop everything else to focus on your preparation. Most importantly, it ensures that 4 months before you start understanding what it will take to be prepared.
Having said this, it is possible to prepared in 6 weeks if you are reasonably focused (or less... but then it will be quite intensive).