compute moon and sun