Calculates margin used for a single balance. The health contribution given is negative if a balance is a liability, so the margin consumed is max(0, -healthContribution)
Calculates margin used for a single balance. The health contribution given is negative if a balance is a liability, so the margin consumed is max(0, -healthContribution)