NH resident working multple locations for a Mass company

I am a service technician working for a Massachusetts based company. I live in NH and work all over the place in New England. I want to know if I should be paying mass taxes on hours worked in NH? If I shouldn't and I have been is there anyways to get that back when I file. How would I calculate how many hours vs how much taxes I paid on that time?