do time

do time {informal} (be in prison; spend time in jail / prison) — сидеть (в тюрьме), отсидеть

Example 1: He did time for robbing a liquor store/for tax evasion in 1990.

Example 2: We did time together in Broadmoor. (CIDI)

Example 3: The bank robber did five years of jail time.

Example 4: If you do the crime, you gotta do the time. (englishbaby.com)

Example 5: He’s been in trouble, but he’s never done time. (englishbaby.com)

People also sometimes talk about doing time to refer to activities other than going to jail. Usually, these are activities that you didn’t really want to do, so they made you feel trapped, or like you were in jail. If you had to spend a month in a town you hated, you might say that you did your time there. Of if you worked at a job you didn’t like and then quit, you might say that you’d done your time. (englishbaby.com)

see also
[serve one's full sentence]