N.Y. General Municipal Law § 699-B
1. When a local government approves a subdivision plat or site plan for five or more residential units or a mixed-use development that incorporates five or more residential units, except as otherwise provided in subdivision two of this section, the applicant shall receive a density bonus or other incentive pursuant to a written agreement between the applicant and the local government and such local government shall require of the applicant:
(c) the payment of a fee equal to two times the median income for a family of four for the Nassau-Suffolk primary metropolitan statistical area as defined by the federal Department of Housing and Urban Development, for each additional unit which results, or would have resulted, from the density bonus or, when such fee exceeds the appraised value of each lot resulting from such density bonus, then such fee shall be equal to the appraised value of the lot or lots, or the equivalent thereof, for each additional unit created by the density bonus. All fees collected by the local government as provided in this section shall, at the sole discretion of the local government, be: