If a small business owner lives outside NY, his business is incorporated outside NY but has an office address in NY (with a serviced office company for example), would the owner have to pay NY state income taxes or only income taxes in the state where he lives? Does this depend on how many days the owner works in the NY office perhaps?

Thank you for your advice!