We determine the distribution of duration in the gambler’s ruin problem given that one specific player wins. In this version we allow ties in the single games. We present a unified approach which uses generating functions to prove and extend some results that were obtained in [Frederick Stern, Conditional expectation of the duration in the classical ruin problem, Math. Mag. 48 (4) (1975) 200–20...