For the application of II of Article L. 2334-40, the amount of credits allocated to each département is equal to the sum of the following three amounts:
1° The sum of the allocations calculated in application of a of 2° of II of article L. 2334-40 for each eligible commune in the department; the allocation for each commune is calculated on the basis of the product of its population, as defined in Article L. 2334-2, by the synthetic index defined in II of article R. 2334-36, without this amount exceeding five million euros;
2° The sum of the allocations calculated in application of b of 2° of II of article L. 2334-40 for each eligible commune in the département; the allocation for each commune is calculated on the basis of the product of its population, as defined in article L. 2334-2, by the synthetic index defined in II of article R. 2334-36, without this amount exceeding one million euros;
3° The sum of the allocations calculated in application of the sixth paragraph of II of article L. 2334-40 for each commune in the department that ceased to be eligible for the city policy allocation in 2017.