If $f(y)=3(1-2y+y^2)$ where $0<y<1$
1)Determine cumulative distribution function (cfd) of random variable $Y$?
2) Find $P(0.5<Y<1.5)$
for Q1 I found the cfd: $3(y-y^2+y^3/3)$ but I'm struggling with Q2 anyone can help since $y$ can't be more than $1$ and here he want it to be $(0.5<y<1.5)$!!