Work on Julian and Gregorian calendars