My problem is to calculate $E[\max(S-5000, 0)]$ where $$S = \sum_{i=1}^{N} X_i,$$ $N$ is a random variable with geometric distribution, parametrized as follows: $$P(N=n) = \frac{\beta^n}{(1+\beta)^{n+1}}, ~~~~~ n=\{0,1,2, ...\}$$ and ${X_1, X_2...}$ are all independent and exponentially distibuted with density: $$f_X(x) = \lambda e^{-\lambda x}.$$
I came up with an idea that I can find the density function of $S$ which is (according to my knowledge): $$f_S(s) = \sum_{n=0}^{\infty} f_{X_1 + X_2 + ... +X_n}(s) \cdot P(N=n).$$
However, I encountered a problem - $N$ may have values $\{0,1,2,...\}$ (natural numbers WITH zero) but I can't calculate the density of the sum of zero random variables (the number of random variables to be sumed is zero when $n=0$).
Is it possible to calculate such density? It is there any other way to calculate $E[\max(S-5000, 0)]$?