fixes for Expense calculation.