Yikes, a recursive formula. Can't do that. But since it maxes out at 5th place, the following should work:
nh * 25 + max(0, (nh - 1) * 25) + max(0, (nh - 2) * 25) + max(0, (nh - 3) * 25) + max(0, (nh - 4) * 25)
By the way, in your example I think you meant "so if the players gets 5 hits in a game he receives ... 375 points"