How long does it take to get a lawyer to plead not guilty after criminal detention?

Let me give you a brief explanation of the procedures for handling criminal cases.

First, the public security organs put on record for investigation, and criminal detention occurred at this stage. After the investigation is completed by the public security organ, it will be sent to the procuratorate for examination and prosecution. In the stage of examination and prosecution, the procuratorate will examine the case, and if it thinks that there is no need to prosecute, it will withdraw the case (that is, there may be a result at this stage). If the procuratorate thinks that it should prosecute, it will enter the stage of criminal proceedings. As a public prosecutor, the procuratorate will sue the suspect to the court. This stage is mentioned in the question. Both the prosecution and the defense can file an appeal, and the case will not be truly closed until the appeal result comes out.

Counting the time, according to the law, criminal detention is up to six months and criminal proceedings are up to six months. If you don't appeal, the result will be more than a year at the earliest, and if you appeal, it will be half a year.

What I'm talking about here is the time required for formal legal proceedings, during which the following unexpected situations may occur, which may lead to an increase in the required time.