Converting this table to a formula: Size Bonus HP 8 0 4 0 2 0 1 10 0 20 -1 30 -2 40 -4 60 -8 80 I think I have reduced this to the following math. Is there a better way to express this mathematically? Max( (-10*@{size})+20, 0 ) - Max( (-10*@{size})-60, 0 )