Insurance on rent (if any) applies if (any of) the said building (s) or any part hereof is unfit for occupation in consequence of any of the perils hereby insured and then the amount payable shall not exceed such proportion of the sum insured on Rent as the necessary period of unoccupancy bears to the term of Rent insured under the policy.