Bugfix in calculation of remaining budget