Adoption of the Gregorian calendar for secular use occurred in Eastern Orthodox countries as late as the 20th century and some religious groups in some of these countries still use the "old style" (O.S.) Julian calendar for ecclesiastical purposes. The Kingdom of Bulgaria changed from the Julian to the Gregorian calendar during the First World War on 31 March 1916, where the next day was 14 April 1916. The Ottoman Empire's Rumi calendar, used for fiscal purposes, was realigned from a Julian to a Gregorian starting on 16 February/ 1 March 1917. The beginning of the year was reset to 1 January starting in 1918.
Gregorian calendar always obtained by doubling (the "bissextum" (twice sixth) or bissextile day) until the late Middle Ages. The Gregorian calendar is proleptic before 1582 (assumed to exist before 1582). The following equation gives the number of days (actually, dates) that the Gregorian calendar is ahead of the Julian calendar, called the "secular difference" between the two calendars. A negative difference means the Julian calendar is ahead of the Gregorian calendar. where formula_2 is the secular difference and formula_3 is the year using astronomical year numbering, that is, use for BC years. formula_4 means that if the result of the division is