because mathematically a day can have more than 24h daylight and less than 0
fixed it
Got it. Will happen whenever the latitude is complement of the declination.
Thanks for replying.