GPS math

http://mypeoplepc.com/members/jon8338/math/id8.html