N.Y. Comp. Codes R. & Regs. tit. 20, § 4-5.1
(d) Employees within New York State include all employees regularly connected with or working out of an office or place of business 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 that (1) a substantial part of its 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 and (2) establishes that the computation of the payroll factor according to the general rule stated above would not properly reflect the amount of the taxpayer's business done within New York State by its employees, then the Tax Commission may permit the payroll factor to be computed on the basis of the amount of compensation paid for services performed within New York State. Services performed within New York State will be deemed to be:
Tax Law, § 210(3)(a)(3)