(n-r+5) + switch(r, 1, 4, 2, 3, 3, 2, 4, 1)
now, a question: does the payouts depend on how many people are in the tournament or do you always pay out 4 places no matter how many people in it? This formula will not reflect different payouts, but it can