In the case of every corporation carrying on business wholly within this state, its entire gross earnings from its operation for the preceding calendar year, or for the portion of the year that the corporation has carried on business, shall be apportioned to this state.
R.I. Gen. Laws § 44-13-9