filing in two states

resident of IL  half the year then AR half the how do i know how much I owe each in state tax