funds calculations

Signed-off-by: Karel Kellner <karel@kellner.be>