N.Y. Comp. Codes R. & Regs. tit. 20, § 19-5.1
(b) The term employees within New York State includes all employees regularly connected with or working out of an office of the taxpayer within New York State, irrespective of where the services of such employees were performed. However, if the taxpayer establishes to the satisfaction of the Tax Commission, or the Tax Commission establishes on its own motion, that (1) a substantial part of the taxpayer's payroll was paid to employees attached to an office in New York State who performed a substantial part of their services outside New York State, or a substantial part of the taxpayer's payroll was paid to employees attached to an office outside New York State who performed a substantial part of their services within New York State, and (2) establishes that the computation of the payroll factor according to the general rule stated in this subdivision would not properly reflect the amount of the taxpayer's business carried on within New York State by its employees, then the Tax Commission may permit or require the payroll factor to be computed on the basis of the amount of compensation paid for services performed within New York State. The compensation paid for services performed within New York State will be deemed to be:
Tax Law, § 1454