Let $X\sim hom(0,1)$ en $Y\sim hom(-1,0)$ independent random variables. Calculate the density of $Z:=X+Y$ and $EZ$.
This is what I got so far:
$$EZ=E(X+Y)=EX+EY=1/2-1/2=0$$
$$f_Z(z)=\int_{-\infty}^{\infty}f_X(x)f_Y(z-x)dx=\int_{-\infty}^{\infty}1_{(0,1)}(x)1_{(-1,0)}(z-x)dx=\int_{0}^{1}1_{(-1,0)}(z-x)dx=\int_{0}^{1}1_{z<x<z+1}(x)dx=...?$$
How can I simplify this ?