It is usually 5 years for people who pursue the Bachelor's degree in Medicine and Surgery, and 6 years for those who prefer the Master's in Medicine.
These times are just for studies, not counting internships or social service that may be necessary to graduate and to practice as a doctor.