It's four years renewable for the residence permit, but really the important thing is to have a work contract. You get the residence permit because of the work contract. So if you still have a work contract after four years, you would just apply for another residence permit. You can have a work contract that has no expiration (no fixed duration).