Hebrew calendar
When the number of days between this Rosh Hashanah and next is 355 days in a regular year (or 385 days in a leap year), an extra day is needed. It is added to Heshvan (month two counting from Tishrei), which then has 30 days.