The "in the money" part of the formula is this:
if(inTheMoney, 10 * (inTheMoneyRank - r + 1))
This does indeed give 10 points for each successive rank which is "in the money". That is, the lowest rank that is in the money gets 10 points, the next lowest rank that is in the money gets 20 points, etc. So, for a tournament with 4 ranked prizes, 4th place gets 10 points, 3rd place gets 20 points, 2nd place gets 30 points, and 1st place gets 40 points. This is in addition to the points allotted by the other part of the formula.
If you want all players "in the money" to simply get an additional 10 points, that part of the formula should be changed to:
if(inTheMoney, 10)
This actually is probably a little confusing when trying to test it in the Points for Playing Formula dialog. That's because when you use the "Test Range" feature, all of the variables (except rank) remain the same. "inTheMoney" should only be "true" for ranks 1-4 (in your example), but when testing it will be "true" for all players. So you want be able to see the points "jump" from 5th place to 4th place. Try this formula:
(10 * (n - r + 1)) + if(rank <= inTheMoneyRank, 10) - (10 * numberOfRebuys)
This is actually the same formula, but we've replaced "inTheMoney" with "rank <= inTheMoneyRank", which is actually the equivalent to "inTheMoney". While the first form is correct and will work just fine, it's harder to test. But either form is the same formula.