Unfortunately there is no set time frame on how long an investigation will take. The investigation is usually done as quickly as possible after the initial allegations are made. The social worker will need to gather as much information as possible before deciding if they will take the case to court. If you are already at the court stage I would suggest contacting a lawyer with juvenile dependency experience to help you navigate the process.
My response is based solely on the limited information contained in the question. It is not meant to substitute your attorney's advice. Additionally, my response does not trigger an attorney-client relationship.
Sign up to receive a 5-part series of useful information and advice about child custody law.