fix calculating longitude delta

modulo 360 was missing