State tax filing

I am residing in Arizona but have to travel to Oregon for 1 or 2 weeks in a month

 

How will my state income tax be calculated? Will it be for Arizona since I am residing in AZ and spent most of the time in this State in that year? Or will I have to pay the Oregon State tax for the weeks that I worked in OR as well?