I was thinking about the use of geometric brownian motion for modeling stock prices after reading Chapter 21 of Achim Klenke's Probability Theory, and while playing around with the equations, I got stuck on the following problem about geometric brownian motion. Suppose that the stochastic process $(X_t)_{t \in [0,\infty)}$ follows geometric brownian motion. That is, for all $t \in [0,\infty)$, $$X_t = X_0e^{\left(\mu-\frac{\sigma^2}{2}\right)t+\sigma W_t},$$ where $W_t$ is the Wiener Process, $\mu$ and $\sigma$ are some constants, and $X_0 > 0$. Assume that $X_0 \in [a-b,a+b] \subset [0,\infty)$, and let $\tau$ be the first time $t$ that $X_t \notin [a-b,a+b]$. That is, $$\tau = \inf\{t > 0 : X_t \notin [a-b,a+b]\}.$$ Then, what is the expected value of $\tau$ (i.e., $E[\tau]$)? I thought the Reflection Principle for Wiener processes would be helpful, but the absolute value causes a lot of problems. My guess is that this is not going to have a closed form solution, but it would be awesome if this has some series that would allow for a close estimate computationally.
Here is my attempt to simplify $\tau$ based on @Kolakoski54 comment. $$\begin{align} \tau &= \inf\{t > 0 : X_t \notin [a-b,a+b]\} \\ \tau &= \inf\left\{t > 0 : X_0e^{\left(\mu-\frac{\sigma^2}{2}\right)t+\sigma W_t} \notin [a-b,a+b]\right\} \\ \tau &= \inf\left\{t > 0 : e^{\left(\mu-\frac{\sigma^2}{2}\right)t+\sigma W_t} \notin \left[\frac{a-b}{X_0},\frac{a+b}{X_0}\right]\right\} \\ \tau &= \inf\left\{t > 0 : \left(\mu-\frac{\sigma^2}{2}\right)t+\sigma W_t \notin \left[\ln{\frac{a-b}{X_0}},\ln{\frac{a+b}{X_0}}\right]\right\} \\ \tau &= \inf\left\{t > 0 : \frac{1}{\sigma}\left(\mu-\frac{\sigma^2}{2}\right)t + W_t \notin \left[\frac{1}{\sigma}\ln{\frac{a-b}{X_0}},\frac{1}{\sigma}\ln{\frac{a+b}{X_0}}\right]\right\} \\ \tau &= \inf\left\{t > 0 : At + W_t \notin \left[B,C\right]\right\}, \end{align}$$ where $$\begin{align} A &:= \frac{1}{\sigma}\left(\mu-\frac{\sigma^2}{2}\right), \\ B &:= \frac{1}{\sigma}\ln{\frac{a-b}{X_0}}, \\ C &:= \frac{1}{\sigma}\ln{\frac{a+b}{X_0}}. \end{align}$$ But, I am not sure where to go from here.