Let $X_1, X_2, \dots$ be i.i.d. $Bern(p)$ with $p\in (0, 1)$. Let $\delta \in (0,1)$ and $m \in \mathbb{N}$. What is the smallest integer $n \in \mathbb{N}$ such that $$P\left( \sum_{i=1}^n X_i \geq m \right) \geq 1- \delta \text{ ?} $$
Are there any bounds/approximations of $n$ in terms of $p$, $m$, and $\delta$?
(It very much reminds of the Chernoff bound, but this is in some sense the reverse direction I guess.)
If you use some kind of normal approximation, and if $q= \Phi^{-1}(1-\delta)$ you might use something like
$$\frac{np-m}{\sqrt{np(1-p)}} \approx q$$ to get (with rounding up)
$$n \approx \left\lceil\frac{2 m+q^2 ( 1-p) +q \sqrt{4 m ( 1-p) +q^2( 1-p)^2 }}{2 p}\right\rceil$$
Experimentation suggests this may give reasonably sharp results for large $p$ and large $m$, but less sharp for small $p$ and small $m$
As an example with R: