I'm working on a paper for school and I need to know how long an inmate can stay in jail? How long before a trial or an agreement is met? How long after sentencing can an inmate stay? I've heard two years before a judge has to make special arrangements. Is this true?