Every town which, without having received a specific exemption from the board of education, fails to keep open all schools required to be maintained under sections one and four or fails to provide school facilities under section six for grades nine through twelve, the number of days required by said board in each school year shall have deducted from the sum of school aid payable to it under chapter seventy an amount equal to the proportion which the number of such days during which schools were not kept open bears to the total number of days required that they be kept open by said board.
Mass. Gen. Laws ch. 71, § 4A