Budget totals sums refactoring