N.Y. Environmental Conservation Law § 17-1903
2. For the purpose of discharging the state responsibility with respect to the protection and promotion of the health of the inhabitants of the state by the provision of sewage treatment works, the commissioner, in the name of the state, may enter into contracts with municipalities having power to construct, operate and maintain sewage treatment works, and any such municipality may enter into a contract with the commissioner, concerning eligible projects. Any such contract may include such provisions as may be agreed upon by the parties thereto, and shall include, in substance, the following provisions: a. An estimate of the reasonable cost of the project as determined by the commissioner. b. An agreement by the commissioner to pay to the municipality, during the progress of construction of each phase of the project (said phases to be construction of interceptors, substructure, superstructure, outfalls or other similar major components of a project), subject to final computation and determination of the state grant upon completion of the entire project reflecting the actual eligible cost thereof, a portion of the cost of the project representing the part of the non-municipal share of the cost of the project that is not paid by the federal government, determined in the following manner: