Thank you very much !!

I tried the formula with 45 players and it stopped giving points after the 10th position

so I changed the formula a bit and it works !!!

if(r < 11, max(0, floor(n/2) - r + 1)) + switch(r, 1, 5, 2, 3, 3, 1)

to

if(r < n, max(0, floor(n/2) - r + 1)) + switch(r, 1, 5, 2, 3, 3, 1)

BigColino