beginning of calculating earliest sunset and latest sunrise