If buildings within the state 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 appears that the insured has paid premiums on an amount in excess of the actual value, the insured shall be reimbursed the proportionate excess or premiums paid on the difference between the amount named in the policy and the actual value, with interest at six percent (6%) per annum from the date of issue; and the excess of premiums, and interest on the premiums, shall be allowed the insured from the time any companies carrying the 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.