How do I determine what % of my Schedule C net income is in a non-resident state?

Most of my Schedule C income is in Minnesota, but the expenses are in Wisconsin where I live. Is it just based on the % of gross income earned in MN or do I somehow have to factor in the expenses?