splitting income between domicile state and second home in anther state

Massachusetts is my domicile. In 2020 I spent 7 months in North Carolina because  of Covid. How do I allocate Social Security and investment income? I'm retired and have no earned income. Also I rent my house in North Carolina and have net taxable income of $2,038 for 2020. Does it get split or allocated to North Carolina?