The actual internship lasts 3.5 years but because of all the exams in between we end up taking study leaves, which we are asked to compensate for at the end. If you have an understanding boss who's willing to waive that extension, you can leave at the end of 3.5 years (he'll still show you as an intern in his book till the period actually gets over), but mine wasn't. Cheers.