added calculateTodaySpending