If you are using the standard OnPlayerRespawn script you would just,
replace:
int nPenalty = 50 * GetHitDice(oDead);
with:
int nPenalty = 50 + (50 * GetHitDice(oDead));
But basically the second line is the formula needed for the XP loss that you want.