The Ancient Egyptians knew what happened, as they would.
'In the early stages of creation when new cosmological deities were still coming into being, the sky goddess Nut became pregnant due to an illicit encounter with the earth god Geb. Upon becoming aware of this, the supreme sun god Re felt threatened, suspecting that Nut's offspring might dispose him from power. As a result Re cast a curse upon Nut preventing her from giving birth on any day during the year. And indeed, at this time the earth possessed exactly 360 days in a year, as the universe was in a state of great order and harmony. '
http://www.occultphysics.com/360-days-in-a-year.html'Coming to the aid of Nut the wisdom god Thoth devised a plan to outmanoeuvre Re. Thoth presented himself to the moon deity Khonsu, who was a great lover of the game Senet, and he challenged him to a series of matches. The stakes however were quite unusual. Thoth proposed that if he won, his prize would be a measure of the moon's light: 1/72 to be exact. Khonsu was so confident in his abilities that he accepted. However, much to his surprise Thoth thoroughly outplayed him in the whole series.
In claiming his prize, Thoth took the light that he had won from the moon and gave it to Nut. This transfer caused the earth orbit to shift and increase its length from 360 days per year to some 365.
Nut was thus able to give birth on the extra days as they were not part of the 'true' Earth year i.e. the 360 cursed days of Re.
Five children were born - new gods to enter the world. Each god was born on one of the five extra days. Their names were: Isis, Osiris, Seth, Nephthys and Horus the Elder. '
There you are, that's what the Egyptians did for us.
The author goes on to argue by invoking the services of the great god Kepler and lots of number, letters and squiggles. At this point I've got to go. The kettle's boiling, and all that.
http://www.occultphysics.com/Ancient-Eg ... onomy.html