N.Y. Comp. Codes R. & Regs. tit. 20, § 120.1
(2) The credit against ordinary tax is allowable only for that portion of the income tax imposed by another state of the United States, a political subdivision of another state, the District of Columbia, or a province of Canada (or both another state of the United States and also one or more of its political subdivisions) which is applicable to the income derived from sources within such other taxing jurisdiction. (See section 120.4[d] of this Part for the definition of the term income derived from sources within another jurisdiction, and subdivision [c] of such section for the definition of income tax imposed by the other jurisdiction.)
(b) Method of claiming credit.
Tax Law, § 620(a)
(a) General.