Mass. Gen. Laws ch. 63, § 29A
(3) The underwriting profit of such company on such insurance written within the United States shall be determined by deducting from the net earned premiums on such marine insurance written within the United States during the taxable year, meaning thereby the calendar year next preceding the date on which such tax is due, the following items:—
(5) In determining the amount of such tax, net expenses incurred shall be determined as the sum of the following:
(6) In determining the amount of the tax payable under subsection (1), the taxable underwriting profit, if any, of such company on all such marine insurance written within the commonwealth shall be ascertained as follows:—
(b) In the case of every such company other than as specified in paragraph (a) of this subsection, such taxable underwriting profit, if any, shall be the underwriting profit, if any, on such marine insurance business written within the commonwealth during the taxable year, ascertained as hereinbefore provided; but after such company has written such marine insurance business within the commonwealth during three calendar years, an adjustment shall be made on the three year average basis by ascertaining the amount of tax payable in accordance with paragraph (a) of this subsection. Any tax credit resulting from such adjustment may be refunded without interest upon written application at the time of filing the required return, or applied toward the payment of any tax due or which may thereafter become due.
[There is no subsection (7).]