netPotAfterCallAndRake
Net pot after HU call and rake.
netPotAfterCallAndRake(potBeforeCall: number, toCall: number, rakeFraction: number, rakeCap: number): number
Import
const poker = require('poker-calculations');
ESM (Node):
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const poker = require('poker-calculations');
When to use
Final pot after a heads-up call (potBefore + 2×toCall), then rake applied. Matches the pot size inside breakevenCallEquityWithRake.
How to use
const potBeforeCall = 90;
const toCall = 30;
const rakeFraction = 0.05;
const rakeCap = 3;
const net = poker.netPotAfterCallAndRake(potBeforeCall, toCall, rakeFraction, rakeCap);
const finalPot = potBeforeCall + 2 * toCall;
console.log({ finalPot, net });