quick update, added code for calcDayNight()