Why is There Leap Year?

There is a leap year to make up for the extra day we have every four years. It takes the earth 365 and 1/4 days to revolve around the sun therefore every four years there is an extra day.