The relative distance between sun and earth varies as a function of the Julian day :
.
The value is needed to calculate the extraterrestrial solar radiation.