N.Y. Comp. Codes R. & Regs. tit. 20, § 481.11
(a) The tax under either the gross weight method or unloaded weight method is based on the number of miles the motor vehicle is operated on the public highways in this State. As noted in section 470.1, public highway includes any public highway, street, avenue, road, public place, public driveway or any other public way. If part of the mileage of any motor vehicle is outside the boundaries of this State that portion of the mileage is not considered in computing the tax.
Example:
If a motor vehicle travels 150 miles in New York State, 100 miles in New Jersey and then returns to New York State where it operates for 15 miles, the mileage in New Jersey is not considered in computing the tax. The tax is based only on the 165 miles traveled in this State.
Tax Law, § 501(6)