calcEarthSunDist function

Compute earth-sun distance based on day of the year