for grif:
It's based on a unit's base HP. When you raise the dead, you lower the HP of the unit.
So if you kill 61 of a stack of 78 mummies (as happened in this battle) - Then that stack is raised - there were still 17 mummies left in the stack. When the stack was raised, the HP of unit drops to 40 for each mummie. That's a 10 HP decrease per unit.
In this case, you lose fsp for the 17 mummies you didn't kill, as they lose 10 hp each for when you actuall have to kill them. So in the end you have to kill 170hp less of the base health.