Filing two states

We moved to North Carolina in January of 21 but I worked remotely for a california school until June. I then made income working for North Carolina from August to December. How do I claim my residential status? NC is saying I underpaid my taxes by $1500 when the majority of my income was made in California. (I was only virtual due to COVID-not official remote employee) Does the dates I put in for being in NC affect my CA income?