Suppose $c>0$. Let $X_i$ be independently and identically distributed exponential variables with parameter $\lambda >0$ and $$S_n=\sum_{i=1}^n X_i.$$ Let $I=\min \{i: X_i >c\}$. How do I show that $\mathbb{E} [S_{I-1}+c] = \dfrac{e^{\lambda c} -1}{\lambda}$?
I started as:
$S_{I-1}$ follows a Gamma distribution with parameters $(I-1,\lambda)$, where if a random variable $X$ follows a Gamma distribution with parameters $n$ and rate $\lambda$, then $$f(x)= e^{-\lambda x}\dfrac{{\lambda}^n x^{n-1}}{(n-1)!}.$$
Then I conditioned as follows:
$$\mathbb{E}[S_{I-1}]=\sum_{i=1}^{\infty} \mathbb{E}[S_{I-1}\mid I=i]\mathbb{P}(I=i).$$
Here I'm wondering whether I should sum from $i=2$ instead!
Anyway, I obtained $\mathbb{P}(I=i)=(1-e^{-\lambda c})^{i-1}e^{-\lambda c}$ as $$\mathbb{P}(I=i)=\mathbb{P}(X_1<c, X_2<c, \dots, X_{i-1}<c, X_i>c).$$
I have doubts here also because the way I did it I obtained $\mathbb{E}[S_{I-1}]=\dfrac{e^{\lambda c} -1}{\lambda}$, which is wrong.