Calculating investors payout