Fixed formatting
Calculation now based on astrolib