added ajax payout calculations