I was studying solar geometry and I read the next equation
$$r=r_{0}\left(1+0,017\sin\left[\frac{2\pi(d_{n}-93)}{365}\right]\right) $$
where $r_{0}$ is the average distance between the Earth and the Sun and 0.017 is the eccentricity of the earth orbit, $d_{n}$ is the days.
My question is how to proof the equation and why the argument of the sine. I suppose that is for properties of the ellipse (the orbit of the Earth is a ellipse) but doesn't work.