A compressor manufacturer offers a five year warranty on repair or replacement of a compressor for its first fault. It is known that the time a compressor operates before failure is a continuous random variable $T$ with density function $$ f(t)= \begin{cases} 0, & t\le 0, \\ \frac{1}{8}e^{-t/8}, &t>0. \end{cases} $$ Calculate the average operating time of a compressor before its first fault and the probability of a compressor failing before that average time.
If the profit for the sale of a compressor is \$5,500 and its replacement or repair has a cost of \$2,000, obtain the expected profit in the sale of one of these compressors.
This is what I did:
I calculated the expected value of $T$: $$E(T)=\int_{0}^{\infty}t·\frac{e^{-\frac{t}{8}}}{8}dt=8.$$ Suppose $t$ is in years.
So, 8 years is the average time before the first fault.
Now, the probability: $$P(0\le T \le 8)=\int_{0}^{8}\frac{e^{-\frac{t}{8}}}{8}dt=1-1/e\approx 0.632$$
And I don't know how to continue from calculating the expected profit.
I think it's $$E(B)=5,500-2,000·E(T|0\le T \le 5)$$ but I don't know how to obtain $E(T|0\le T \le 5)$ and even whether it's the correct term to calculate.