If a shareholder of an S Corporation is both a resident and nonresident of this State during any taxable period, the shareholder's pro rata share of the S Corporation's income attributable to the State and income not attributable to the State for the taxable period shall be further prorated between the shareholder's periods of residence and nonresidence, in accordance with the number of days in each period, as provided in G.S. 105-153.4.
N.C. Gen. Stat. § 105-131.5