I'm going wrong with the calculation of CDF for the ratio $\frac{Y}X$ where $X$ and $Y$ are follow uniform distribution in range (0,1).
Let $ T = \frac{Y}X $
CDF of T is $F_T(t) = P(\frac{Y}X <t)$
To calculate $F_T(t)$ condition on $X$ and then apply Law of total probability
$P(\frac{Y}X <t) = \int P(Y<tx|X=x)P(X=x)dx$ and $P(X=x)=1$ since $X$ and $Y$ are independent
$P(\frac{Y}X <t) = \int P(Y<tx)dx$
Range of $tx$ can be either $0<tx<1$ or $tx>1$
Then calculate $F_T(t)$ for above two cases of $tx$
For $0<tx<1$ integral becomes $P(\frac{Y}X <t) = \int_0^1 P(Y<tx)dx = \int_0^1 txdx = \frac{t}2$
For $tx>1 P(Y<tx)$ becomes 1,so $P(\frac{Y}X <t) = \int_0^1 1dx = \int_0^1 txdx = 1$
I know that the problem is with the limits of integral, this post answers the same question, but doesn't explain how those limits were arrived at.