This is a very complicated topic. The short answer is the District Attorney has 6 months to be ready for trial. Generally, the DA must indict you within 6 months after the initial arraignment. However, certain time periods will count and other periods will not count. For instance, if your criminal lawyer buffalo ny requests an adjournment, then this time should not county. If the prosecution requests the adjournment, then depending on whether criminal lawyer buffalo ny consents on the record, the time may or may not county.
Bottom line, this is a very difficult question to answer and minor facts will probably play a significant role.