Working for MA remotely from FL

Hello,

 

I am a current resident of NY accepting a job for a MA-based company. 4 weeks after I start employment I am permanently relocating from NY to FL and will become a resident of FL. I have never been a resident of MA.

I will never travel to MA or do any work out of MA. I will be working from home in NY first (for 4 weeks) and then from FL.

Could you please help me figure to which state I will owe my state taxes?

I am assuming that I will need to pay NY state taxes for the 4 weeks I work from NY. But what happens after I move to FL?

 

Thank you in advance for your help!