To become a hospital doctor (the most senior role is a hospital consultant) you will need to complete:
15 years. 5 at medical school and 10 years afterwards. A long time? Maybe. But it takes that long to become a good specialist hospital doctor.
After this, you can apply for a hospital consultant post which is a permanent position.
A medical degree normally takes 5 years to complete. Some courses have the option to include an extra year if you want to study a subject further. This is called an intercalated year. It is usually focused on research and writing a thesis plus/minus publications.