corrected sun position calculation