In the webpage "hitting time of one of two barriers", the probability that a non symmetric random walk hits one of two barriers is computed. The walker starts from $x=0$ and the barriers are located in $x=+n$ and $x=-n$. The walker can move one step on the right with probability $p$ and one step on the left with probability $q$.
The probability to hit one of the two barriers at time $n + 2k$ is:
$$ P_{hit}(n+2k) = \sum_{ - \lfloor k/n \rfloor }^{\lceil k/n \rceil} {(-1)}^r \binom{n + 2k - 1}{nr + k}( p ^n + q^n ) {(pq)}^k $$
How does the expected hitting time grow with the distance from the barrier and the initial point, $n$? Linearly? This means finding an expression for $E_{hit}(n)$, with
$$ E_{hit} = \sum_{t=0}^{\infty} t \cdot [ P_{hit}(t) ] $$