State tax filing

I am a resident of NY.

 

The problem is that if I call NY, NY says it's NY source income.   If I call MD, MD says it's MD source income.   Currently MD has declined to refund me for last years witholdings, while NY has also charged me taxes on the same income.   

 

I'll have to try the form, because both states appear to want to double tax the same income.