How It Works
The calculator uses NOAA solar position algorithms to compute the sun's declination and hour angle for a given latitude, longitude, and date. Sunrise and sunset occur when the sun's centre is 0.833° below the horizon (accounting for refraction and solar disc radius).