How do you allocate schedule c income between two states?

The program allocated all the income to one state.  It needs to be split between states.