How allocate unearned income for two states with partial year for each?

You suggest divide total by 12 and multiply by the number of months I lived in each state.  I moved in the middle of a month.  Do the states let me do whatever I want here, or do I need to calculate the percentage of the year that I resided in each state?  How fussy are the states going to be about this?