State tax filing

Unfortunately, I already filed NC two days ago thinking the company was right. I will have to file an amendment to get a refund. I was holding off on PA State and Local as I was struggling with accurate reporting of compensation. I will re-engage my company for a corrected W2, but their initial response was that "they put my address and work location in the system and it determined which state taxes apply." I assume they mean ADP? The company also confirmed that from 1/1-3/13 my residence was PA but work location was NC and the "system" said NC gets the taxes during that timeframe. 

 

Per the North Carolina says "A nonresident employee is subject to N. C. withholding tax on any part of his wages paid for services performed in this State." - What constitutes "in this State"? Does it have to be physical presence while performing the work or does working remote from another state also count for "in this State"?