The number of students who may be taken into account for the purposes of the reduction in the school population is determined by(1) calculating the number of students who may be taken into account for the purposes of the reduction in the total number of students by(a) multiplying by 0.99 the total of the numbers obtained under paragraphs 2 to 4 and 7 to 10 of section 1 for the preceding school year, to which is added, where applicable, the number obtained under subparagraph 1 of the second paragraph of section 2 for the same school year; and
(b) subtracting from the product obtained under subparagraph a, the sum of the numbers obtained under paragraph 2, excluding 4-year-old preschool students, and paragraphs 3, 4 and 7 to 10 of section 1, as they read taking into account the application of section 3, if applicable;
(2) determining the number of students who may be taken into account for the purposes of the reduction in the number of 5-year-old preschool students and elementary school students by(a) calculating the number of 5-year-old preschool students and elementary school students of the preceding school year who may be taken into account under paragraph 7 of section 1;
(b) multiplying by 0.99 the total of the numbers obtained under subparagraph a and paragraphs 2, 3, 8 and 9 of section 1 for the preceding school year, to which is added, where applicable, the number obtained under subparagraph 2 of the second paragraph of section 2 for the same school year;
(c) calculating the number of 5-year-old preschool students and elementary school students who may be taken into account under paragraph 7 of section 1; and
(d) subtracting from the product obtained under subparagraph b, the total of the numbers obtained under subparagraph c and paragraph 2, excluding 4-year-old preschool students, and paragraphs 3, 8 and 9 of section 1, as they read taking into account the application of section 3, if applicable;
(3) calculating the number of students who may be taken into account for the purposes of the reduction in the number of secondary school students by(a) calculating the number of secondary school students year who may be taken into account under paragraph 7 of section 1 for the preceding school year;
(b) multiplying by 0.99 the total of the numbers obtained under subparagraph a and paragraphs 4 and 10 of section 1 for the preceding school year, to which is added, where applicable, the number obtained under subparagraph 3 of the second paragraph of section 2 for the same school year;
(c) calculating the number of secondary school students who may be taken into account under paragraph 7 of section 1; and
(d) subtracting from the product obtained under subparagraph b, the total of the numbers obtained under subparagraph c and paragraphs 4 and 10 of section 1, as they read taking into account the application of section 3, if applicable;
(4) subtracting from the sum of the numbers obtained under paragraphs 2 and 3, the number obtained under paragraph 1 and multiplying by 0.37 the resulting number; and
(5) adding the numbers obtained under paragraphs 1 and 4.