reworked conclusion algorithm

todo: add the calculation about who has to pay which amount to whom