assortment of moon calc code