Part time resident status

I am doing taxes for my parents who lived in CA for the first 3 months of the year and North Carolina for the remaining 9. For the NC state taxes, I split up the amounts earned in NC for the 9 months. The next screen asks for how much of their social security was paid or incurred as a result of income reported in NC. 

 

I am confused on this-do I again put the portion that was earned during their time in NC? 12,114 out of $16,152. It then taxes them a bunch of money. Doesn't seem right.

 

Also, they are taxing them on depreciation of a sewer line of a rental they own in CA.