If you're looking for a roll, you can do {a,b,c,d,e}kh1. If you want this in a calculated field, the max of two numbers is (a + b + abs(a - b)) / 2. You can iterate applying that formula to determine the max of more numbers because max(a, b, c) = max(max(a, b), c) = max(a, max(b, c)). Just be aware that it'll probably be a bit painful to extend it to five numbers.