B1;2802;0cLet's do the maths right...

The way the balance was calculated was just plain wrong.
All tests have been re-written and the maths have been fixed.

Phew.
Signed-off-by: Balthazar Rouberol <brouberol@imap.cc>