Working code for Rising Sun with an arbitrary date