TODO: calculate group loan.