Century daylight algorithm