Determining exactly where the sun and moon will rise and set