PDA

View Full Version : How to calculate the *exact* rake I pay



Dredok
12-07-2009, 08:16 AM
Hi,

I see rake is calculated as contributed rake. They way the stat "rake" works, it will count both for winning and loosing pots. And just the part I pay.


I want to know how to calculate the exact rake I pay. I mean, If I win a pot, how much the site takes out of this pot. If I loose a pot, I do not pay any rake.

Thanks in advance,
Dredok

Dredok
12-07-2009, 09:13 AM
may I answer myself?

How about something like:

won hand = true
seen flop = true (I guess its unnecessary)
ph.RakeAmount * numberofplayersdealt (or whatever stat indicates the number of players with cards)

it should do the trick?

titoufred
01-30-2011, 03:47 PM
I wrote this stat to evaluate the real rake you pay (in hands you won) :

Stat ColumnName="Real Rake" ColumnHeader="Real Rake" ColumnFormat="$0.00" ColumnWidth="*" Tooltip="Real Rake paid in hands won"
ValueExpressions="sum(case when ph.NetAmountWon>0 then pkh.rakeamount/100.0 else 0 end) as RealRake" Evaluate="RealRake" />

Enjoy !



There is only a marginal issue with split pots, since you may :

1) split a pot and have a netamounwon>0, the stat counts 100% rake instead of 50%
2) split a pot and have a netamountwon<0, the stat counts 0% rake instead of 50%

Does anybody know a way to detect split pots ?

lonelycube
03-05-2011, 01:07 AM
there is another marginal issue: side pots :)

titoufred
03-05-2011, 03:14 AM
Yes you are right.