Get your taxes done using TurboTax

usually there's a section in the return for allocating income/expenses when earned in multiple states.

 

every state I've encountered where allocation was required used either a 1 or 2 or 3 factor formula

the factors were sales, wages, and tangible property so look for this on your s corp state return