Earliest sunset function

Added a function for determining the day of the earliest sunset