Stopping time on Wiener Process Let $W_t$ be a Wiener process and for $a\geq0$
$$\tau_a:=\inf \left\{ t\geq0: |W_t|=\sqrt{at+7} \right\}.$$
Is $\tau_a<\infty$ almost everywhere? What about $E(\tau_a)$ then?

As explained by Shawn, the law of the iterated logarithm shows that $\tau_a$ is almost surely finite. 
Since $\tau_a=\inf\{t\geqslant0\mid W_t^2=at+7\}$ and $\tau_a$ is almost surely finite, $W_{\tau_a}^2=a\tau_a+7$. Likewise, for every $t\geqslant0$, $\tau_a\wedge t\leqslant\tau_a$ almost surely hence $W_{\tau_a\wedge t}^2\leqslant a(\tau_a\wedge t)+7$ almost surely and in particular $\mathrm E(W_{\tau_a\wedge t}^2)\leqslant a\mathrm E(\tau_a\wedge t)+7$. On the other hand, $(W_t^2-t)_{t\geqslant0}$ is a martingale hence $\mathrm E(W_{\tau_a\wedge t}^2)=\mathrm E(\tau_a\wedge t)$ for every $t\geqslant0$. One sees that $(1-a)\mathrm E(\tau_a\wedge t)\leqslant7$.
If $a\lt1$, one gets $(1-a)\mathrm E(\tau_a)\leqslant7$ hence $\tau_a$ is integrable. Since $W_{\tau_a}^2=a\tau_a+7$, $W_{\tau_a}^2$ is integrable as well and  $\mathrm E(W_{\tau_a}^2)=a\mathrm E(\tau_a)+7=\mathrm E(\tau_a)$, which shows that
$$
\mathrm E(\tau_a)=\frac{7}{1-a}.
$$
If $a\geqslant1$, $\tau_a\geqslant\tau_b$ for every $b\lt1$, hence $\mathrm E(\tau_a)\geqslant\mathrm E(\tau_b)=7/(1-b)$ for every $b\lt1$, in particular $\mathrm E(\tau_a)$ is infinite.
