added gps calculator code