When you say "sentenced," that is a different thing from being found guilty. The time someone can stay in jail prior to trial depends upon many facts. One of those facts are the reasons for the continuances. You should contact an attorney to discuss it in detail.
Michael L. Doyle
Attorney at Law