Do I need to fill out "Allocated Income Based on Business? (I have 2 W-2 forms from the same employer, one for AZ and another for NY. Paid state taxes on both.)

I worked in NY for 7 weeks on project. Thne went back to live and work in AZ until the next project. All my next projects were in states other than NY.
How do I enter in information if I had not physical address or exact percentage?