How long do offenders typically stay in detention centers if they have not yet been sentenced by a court? Does the state have clear regulations?

Under normal circumstances, a criminal suspect can be sentenced after being held in a detention center for about half a year. It can also be extended under special circumstances.