Leap years account for the Earth’s 365.2420-day orbit, with complex rules deciding when an extra day is added to February.