How long is the day where you are
The number of daylight hours a place receives depends on just two things — how far it sits from the equator and where the Earth is in its orbit. This calculator takes a latitude and a date and returns the length of the day using the same sunrise equation that powers astronomical almanacs. Enter your latitude, pick a date, and see the hours and minutes of daylight instantly.
The astronomy behind it
Each day of the year corresponds to a solar declination, the angle of the sun above or below the celestial equator, which swings between about plus and minus 23.44 degrees over the year. Combine that declination with your latitude and a little trigonometry gives the hour angle at which the sun crosses the horizon. Double it, convert from degrees to time, and you have the day length. The figure is geometric, meaning it tracks the centre of the sun and leaves out the few minutes that atmospheric refraction adds at each end.
Longest and shortest days
Alongside the date you choose, the tool shows the longest and shortest days of the year for your latitude — the values around the June and December solstices. The gap between them widens the further you travel from the equator, from almost nothing at the tropics to full polar day and night inside the polar circles. It is a quick way to see just how much the seasons swing where you live.