(1) If the business activity in respect to any trade or business of a taxpayer occurs both within and without this state and if by reason of such business activity the taxpayer is taxable in another state, the portion of the net income (or net loss) arising from such trade or business which is derived from sources within this state shall be determined by apportionment in accordance with 15-31-305 through 15-31-311, MCA.
(2) Any taxpayer subject to the taxing jurisdiction of this state shall allocate all of its nonapportionable income or loss within or without this state in accordance with 15-31-304, MCA.