Algorithm to compose liturgical calendars for ordinary and extraordinary rite and including customizations