The Tabular Islamic calendar is a rule-based variation of the Islamic calendar. It has the same numbering of years and months, but the months are determined by arithmetical rules rather than by observation or astronomical calculations. It was developed by early Muslim astronomers of the second hijra century to provide a predictable time base for calculating the positions of the moon, sun, and planets. It is now used by historians to convert an Islamic date into a Western calendar when no other information is available. Its calendar era is the Hijri year. It is used by some Muslims in everyday life, particularly in Ismaili and Shi'a communities, believing that this calendar was developed by Ali. It is believed that when Ali drew up this calendar, the previous events of the earlier prophets also fell into line with this calendar. It is their belief that all Fatimid Imams and their Da'is have followed this tradition. Each year has 12 months. The odd numbered months have 30 days and the even numbered months have 29 days, except in a leap year when the 12th and final month Dhul-Hijjah has 30 days.
Intercalary schemes
30-year cycle
In its most common form there are 11 leap years in a 30-year cycle. Noting that the average year has 354 11/30 days and a common year has 354 days, at the end of the first year of the 30-year cycle the remainder is 11/30 day. Whenever the remainder exceeds a half day, then a leap day is added to that year, reducing the remainder by one day. Thus at the end of the second year the remainder would be 22/30 day which is reduced to −8/30 day by a leap day. Using this rule the leap years are year number 2, 5, 7, 10, 13, 16, 18, 21, 24, 26 and 29 of the 30-year cycle. If leap days are added whenever the remainder equals or exceeds a half day, then all leap years are the same except 15 replaces 16 as the sixth long year per cycle. The Ismaili Tayyebi community delays three leap days by one year: the third to year 8, the seventh to year 19 and the tenth to year 27 in their 30-year cycle. There is another version where, in addition, the fourth leap day is postponed to year 11 and the last leap day is in the last year of the 30-year cycle. The mean month is 29 191/360 days = 29.5305555... days, or 29d 12h 44m. This is slightly too short and so will be a day out in about 2,500 solar years or 2,570 lunar years. The Tabular Islamic calendar also deviates from the observation based calendar in the short term for various reasons. The "Kuwaiti algorithm" is used by Microsoft to convert between Gregorian calendar dates and Islamic calendar dates. There is no fixed correspondence defined in advance between the algorithmic Gregorian solar calendar and the observing Islamic lunar calendar. As an attempt to make conversions between the calendars somewhat predictable, Microsoft claims to have created this algorithm based on statistical analysis of historical data from Kuwait. According to Rob van Gent, the so-called "Kuwaiti algorithm" is simply an implementation of the standard Tabular Islamic calendar algorithm used in Islamic astronomical tables since the 11th century.
8-year cycle
Tabular Islamic calendars based on an 8-year cycle were also used in the Ottoman Empire and in South-East Asia. The cycle contains 96 months in 2835 days, giving a mean month length of 29.53125 days, or 29d 12h 45m. Though less accurate than the tabular calendars based on a 30-year cycle, it was popular due to the fact that in each cycle the weekdays fall on the same calendar date. In other words, the 8-year cycle is exactly 405 weeks long, resulting in a mean of exactly 4.21875 weeks per month. The shortest equivalent would be 32 months in 945 days. This is the best full-week approximation possible with a multiple of 12 months and with less than 10000 days per cycle:
443 weeks or 1772 days in 60 months is too much at 29.5 days per month.
8859 days in 300 months or 4961 days in 168 months are too short with an average of 29.53 days per month. 3898 days in 132 months results in 29.5 days per month. All three of these cycles do not even contain an integer number of weeks.
1447 weeks in 343 months make 10129 days and a mean month of c. 29.53061 days.
502 weeks in 119 months make only 3514 days, but an average month of just 29.5294 days.
120-year cycle
In the Dutch East Indies into the early 20th century, the 8-year cycle was reset every 120 years by omitting the intercalary day at the end of the last year, thus resulting in a mean month length equal with that used in the 30-year cycles.