Section 13. (a) The funds appropriated for state school aid shall be allocated among municipalities as set forth in this chapter. If said amount appropriated is less than the total base aid amount, each municipality's allotment of base aid shall be reduced by a constant amount per student that shall be determined by dividing the difference between the total base amount and said appropriation amount by the total foundation enrollment in the state.
(b) If the amount appropriated is more than the base amount, funds shall first be allocated to ensure that state school aid for each municipality equals the base aid amount.
(c) Any additional funds shall be allocated to cover minimum aid. If the amount appropriated for state school aid is insufficient to permit full funding of the base aid and minimum aid, funds in excess of the amount needed to fund base aid shall be allocated on a proportional basis reflecting the ratio of a particular municipality's minimum aid to the sum of minimum aid amounts of all municipalities for that fiscal year.
(d) All remaining funds shall be allocated to cover foundation aid, equity aid, and overburden aid.
(e) The allocation to each municipality that received foundation aid of more than the minimum aid amount above the base amount shall be reduced by an amount that is the lesser of (1) the minimum aid amount and (2) the positive difference, if any, between its foundation aid and minimum aid. The funds available from this reduction shall be allocated to all municipalities such that each one receives the same proportion of this aid as was received in paragraph (d). These increments shall be considered part of foundation aid, equity aid, and overburden aid.