Four gates   ד' שערים

+2 תשריs
 
ש
 
ש
 
ש
    Next תשרי
     
    ש
     
    ש
     
    ש
      This תשרי
       
      ש
       
      ש
       
      ש
        Last תשרי
         
        ש
         
        ש
         
        ש
          Molad Tishrei Year of 19-year cycle
          1 4 9 12 15
          (מפ"פ)
          7 18
          (מפ"מ)
          2 5 10 13 16
          (פפ"מ)
          3 6 8 11 14 17 19
          (פמ"פ)
          7d 18h 0ch
          בח"ג בח"ה
          1d 9h 204ch
           
          1d 20h 491ch
          בש"ה בש"ז
          2d 15h 589ch
           
          2d 18h 0ch
          גכ"ה גכ"ז
          3d 9h 204ch
          הכ"ז  
          3d 18h 0ch
          הח"א
          4d 11h 695ch
          הש"ג
          5d 9h 204ch
          הש"א  
          5d 18h 0ch
          זח"א זח"ג
          6d 0h 408ch
          6d 9h 204ch
          6d 20h 491ch
          זש"ג זש"ה
          7d 18h 0ch
          Stories:



          Overall Explanation

          The ארבעה שערים ("Four gates") is a shortcut to calculating the year's calendar. It was already referred to in the time of the Gaonim. Once you have found this year's molad for Tishrei, instead of calculating next year's molad and checking the Four Dechiyos for each of them, this chart just tells you the answer: which one of the fourteen calendars is the one for this year.

          You need to know
          (A) this year's molad Tishrei, and
          (B) which of last year, this year, and next year are leap years. There are four possibilities:

          1. Last year was a leap year, this year and next year are not (מפ"פ).
          2. Both last year and next year are leap years, this year is not (מפ"מ).
          3. Next year was a leap year but this year and last year are not (פפ"מ).
          4. This year is a leap year, last year and next year are not (פמ"פ).

          The leap years and regular years go in a 19 year cycle ('גו"ח אדז"ט'); the chart shows which years fall into each of the types. For instance, מפ"פ applies to years 1 4 9 12 15.

          The time of the molad of Tishrei can fall anywhere in the week (7d 0h 0ch → 6d 23h 1079ch). [Note that in Jewish calendar time, the day begins at 6pm (called 0h), midnight is 6h, dawn 12h, and noon is 18h.] If you would move it through the week from beginning to end, you could calculate the molad of the next Tishrei as well and work out the dechiyos. For small changes, mostly the days of Rosh Hashanah would not change. However, at certain times one of the molads would cross a critical line. At that point, the calendar has a sudden change. Then it will stay the same for a while again, until another critical line is reached.

          Those critical points are on the left of the right-hand chart, in the "Molad Tishrei" column. If the molad reaches one of those values, we get a new calendar, and it will stay that way till the molad reaches the next critical point.

          The critical points may be for only some of the types. To see which ones, extend the line from that value, visually to the right (red horizontal arrow); the places where the line appears are the year types for which this critical point marks a change.

          For instance, for 2d 18h 0ch the line by those numbers is only visible on the right two columns, פפ"מ and פמ"פ: look to the right to see the line begin there. For those two the calendar changes when the molad is ≥ 2d 18h 0ch. (For the left two columns the change had already happened a little earlier, at 2d 15h 589ch.)

          Dynamic features of the app:

          The four rulers on the left show the times of a molad, for four successful Rosh Hashanos: Last year's Tishrei, this year's Tishrei, next year's, the year after.

          The rulers are linked, locked in synch, by the amount of time that passes from one year to the next. That depends on whether each year in between is a regular or leap year - all of which depend on which column (year type) you're in on the chart on the right.

          Things to do:

          1) You can click on a different year type column (on the headers on the right like '(מפ"מ)') to change to it, and the rulers on the left will adjust, since the lengths of the various years have changed.

          2) You can adjust the molad of this year's Tishrei (2nd ruler from the right, 'This ר"ה') by pulling the green pointer,

          3) or by setting its value on the bottom. The other pointers will follow.
          As the molad for this year changes, the calendar chosen for the year also adjusts.

          4) If you click on any of the critical change times ("Molad Tishrei" column), (a) it will be set as the molad time in the ruler for 'This ר"ה'. (b) The year type on the right hand side may change as well, to make this transition work.
          (c) An explanation of the transition that takes place at the time also appears, below in the "Stories" area.
          The calendar for the year will change back and forth if you move the molad even 1 chelek earlier.

          Each of these transitions happens because one of the four rulers moves past the 18h mark, forcing a change to the day of Rosh Hashanah that year because of the rule "מולד זקן". (d) That place on that particular ruler will flash briefly to make it more noticeable.

          (d) Also, vertical colored bars will appear to the left of one or more of the rulers on the left-hand-side. These bars show how Rosh Hashanah changed for each of the affected years. You should be able to follow the steps in the Stories section below: One bar will show the day of the week for the initial guess at Rosh Hashanah on the day of the molad itself, and then one or two bars will show how it moves forward to its final position (in blue).

          [This chart is a modified version of one found in Wikipedia, https://en.wikipedia.org/wiki/Hebrew_calendar#Four_gates.]