Sounds right to me, considering that the distance between sun-earth is a lot bigger than their diameter.
But it's only a approximation, i.e. just imagine that the earth would have a diameter of let's say 80 million miles, then it would bring totally different results.
But as it's in reality your app. should be good enough
