For a quick number, memorize this:
n≈Δ216σ2per armHere σ2, sigma squared, is one user's variance, and Δ is the lift. For a conversion rate, σ2=p(1−p).
The 16 is 2×7.85=15.70, rounded up. The 7.85 is (1.96+0.84)2. The 2 is the two arms: a difference of two means has twice the variance of one. It isn't there for the two tails, which are already in the 1.96.
Lehr proposed it in 1992 as an equation to memorize, "intended only for a specific set of values (80 per cent power for a two-tailed alpha = 0.05 test)". Change either and the 16 changes. Kohavi and colleagues' survey of online experiments uses 21 for 90% power, and 2×10.51=21.01. The survey gives it as the minimum sample size, "where n is the number of users in each variant and the variants are assumed to be of equal size".
In the editor, write lehr_constant(alpha=0.05, power=0.8): the constant for any alpha and power, so the 16 and the survey's 21 both come out of it.