Proper calculation of nighttime overlay path