Working remotely for MA company from NY, but lived in NH and commuted to office short period of time.

 

In 2002 daughter graduated and got job for a Massachusets company while living in NY. She worked remotely for a couple months from NY, and then moved to NH. While living in NH, she commuted to MA and worked in the office. In December, she moved back home to NY and went back to working remotely.

While working on taxes with online, I did non resident for MA and Resident for NY.

I'm confused if her MA income is full amount or is it based on days worked in office in MA. She worked 42 days in MA and 94 outside MA. On w2 , only MA state tax was deducted.
On the NY section of the online interview I entered the MA tax paid which I believe was called credit taxes paid to other state.

I tried it both ways.
First way as full amount of wages earned in MA, which gives her a MA and NY refund.
Second way by entering the days worked in and out of MA which gives her a bigger MA refund but NY tax owed.

The second way, does net her an extra $60 over the first.

I saw something MA adjusted their tax policy for remote workers during pandemic but it is be challenged in court.

Which way should I do them?