Perpetual calendar

1) Find the principle of the calendar.[br]2) Explain the red month for leap years.

Information: Perpetual calendar