Demo program to calculate the phase of the moon for a given date. Based on an algorithm by John Horton Conway.