Calculating longitude and local time