Calculating Non-Massachusetts Portion of Deductions.

I moved from Massachusetts to Rhode Island when I bought a home. I did not change employers.

I did change employers at the end of october, however that was still a boston based job. 

 

How do i calculate non mass portion of deductions if i didn't change my employer location just where I lived?