Answer
$t=-\frac{2}{R}ln(1- \frac{IR}{E})$
Work Step by Step
$I=\frac{E}{R}(1-e^{-Rt/2}) \longrightarrow 1-e^{-Rt/2} = \frac{IR}{E} \longrightarrow e^{-Rt/2}=1- \frac{IR}{E} \longrightarrow -\frac{Rt}{2}=ln(1- \frac{IR}{E})\longrightarrow t=-\frac{2}{R}ln(1- \frac{IR}{E})$