calculate group expenses in an easy way