Calculates the phase of the moon on a given date