Brownian exit from an interval
= Brownian exit from an interval
For one-dimensional Brownian motion started at zero and $T=\tau_b\wedge\tau_{-a}$ with $a,b>0$,
$$
\mathbb P(B_T=b)=\frac{a}{a+b},
\qquad
\mathbb E[T]=ab.
$$
Optional stopping of $B_t$ and $B_t^2-t$ proves the two identities.