Tax Law, § 639(a)(2)
Any modification, or portion thereof, described in subdivision (a) of this section relating to an item of income, gain, loss or deduction derived from New York State sources which enters into the definition of Federal distributable net income is not to be included in determining net change, under subdivision (a) of this section, if the item to which the modification pertains is paid or permanently set aside during the taxable year for a New York State charitable purpose pursuant to the terms of the governing instrument of the estate or trust. If a charitable organization is designated in the governing instrument as a distributee of a percentage or part of the estate or trust income, gain, loss or deduction, but not as the distributee of a particular item of income, gain, loss or deduction, the portion of such a modification to be excluded from the determination of net change is such proportion of the modification as the amount paid or payable to the charitable organization bears to the total income of the estate or trust. For purposes of this Part, New York State charitable purpose means contributions to the State of New York or any political subdivision thereof, or to any corporation, trust, community chest, fund, foundation or other entity organized or operated under the laws of New York State, which are allowed as deductions in computing Federal taxable income.
N.Y. Comp. Codes R. & Regs. Tit. 20 § 139.3