Calculating investors payouts