how to calculate longitude when time is given