N.Y. Criminal Procedure Law § 30.30
1. Except as otherwise provided in subdivision three of this section, a motion made pursuant to paragraph (e) of subdivision one of section 170.30 or paragraph (g) of subdivision one of section 210.20 of this chapter must be granted where the people are not ready for trial within:
2. Except as provided in subdivision three of this section, where a defendant has been committed to the custody of the sheriff or the office of children and family services in a criminal action he or she must be released on bail or on his or her own recognizance, upon such conditions as may be just and reasonable, if the people are not ready for trial in that criminal action within:
3.
(c) A motion made pursuant to subdivision two of this section shall not:
4. In computing the time within which the people must be ready for trial pursuant to subdivisions one and two of this section, the following periods must be excluded:
(c)
5.