For each setup I simulated one million players with the same 96% RTP medium variance slot. Normal gaming session may take 1-2 hours, so I have decided to fix (D) to 1500 rounds (number of rounds after which player leaves regardless of his current bankroll). Note that for budgets and basic bets with which this strategy actually works, the average number of rounds played is around 1300.