In my opinion, Beer-LambertBeer–Lambert law is no use. I would rather write $$\frac{dI}{I \times dl} = 0.8 \ \mathrm{m^{-1}}$$
$$\frac{\mathrm dI}{I\,\mathrm dl} = \pu{0.8 m^-1},\tag{1}$$
which leads to the integrated formula $$ \ln \left( \dfrac {I_o}I \right) = 0.8· l $$
$$\ln\left(\frac{I_0}{I}\right) = 0.8 l.\tag{2}$$
And, if $\dfrac I{I_o} = 0.5$,$\displaystyle\frac{I}{I_0} = 0.5,$ the corresponding depth is : $l = \dfrac { \ln 2 }{0.8} = 0.846$ m
$$l = \frac{\ln 2}{0.8} = \pu{0.846 m}.\tag{3}$$