fixed logic in calculating common amount and pie chart values for common expenditures