Formula for calculating RevShare?

Formula for calculating RevShare?

The formula for calculating revshare is described in detail here