Englisch to have to do X years

Example: "Those who have to do many years will have a hard time finding their place in society afterwards." (Means: having to go to prison, being imprisoned)

Kennen Sie schon die Übersetzungen für diese Phrasen?