The calendar is mainly based on the Earth's movement around the sun, which takes about 365.25 days (that's why we have a leap year every 4 years).