Actually, that may not be quite right. I assumed that, since you're awarding points to 1st, 2nd, and 3rd, that you're also awarding prizes to 1st, 2nd, and 3rd, but that may not be true. Here are the two formulas:
0.25 + switch(r, 1, 5, 2, 3, 3, 2) + if(r = (inTheMoneyRank + 1), 1) + (nh * 0.25) - if(inTheMoney and (nr > 0), .5, 0)
and if the player loses .5 for each rebuy:
0.25 + switch(r, 1, 5, 2, 3, 3, 2) + if(r = (inTheMoneyRank + 1), 1) + (nh * 0.25) - if(inTheMoney, nr * .5, 0)