find_sun_algorithm