It takes a minimum of 40 flight hours, but normally you should expect more like 55–60 hours. Then there is ground school too, about 10 or 15 more hours. The speed at which you complete the training depends on the instructor/school and your availability. It can all be done in as little as a few weeks. With that said, be ready to drop some coin, more than $10K.