calculate the expenseparts