State tax filing

Hi,

So when the numbers are plugged in I am still being taxed for AZ tax on entire overall income including IL G1099 income. According to AZ form 309, AZ is also not allowing a dollar for dollar credit for IL tax paid , only a fraction which is the IL taxable income divided by total income for both states. Of the $1079 tax for IL the AZ credit is only $463. Plus turbo tax calculated the AZ taxes with the same IL income from federal return without reducing or subtracting the portion of income from IL. Am I entering something wrong in interview, it seems I am paying twice on same IL income in AZ?