If buildings within the commonwealth insured against loss by fire are totally destroyed by fire, the company shall not be liable beyond the actual value of the insured property at the time of the loss or damage; and if it shall appear that the insured has paid premiums on an amount in excess of said actual value, he shall be reimbursed the proportionate excess of premiums paid on the difference between the amount named in the policy and said actual value, with interest at six per cent per annum from the date of issue; and said excess of premiums and interest thereon shall be allowed the insured from the time any companies carrying said insurance at the time of the loss have continuously carried the insurance on the destroyed buildings, whether under policies existing at the time of the loss or under previous policies in the same companies.
Mass. Gen. Laws ch. 175, § 96