method to get totals

method to add expenses in each category