The length of a "molad" is just a little over days. Since a month must have a whole number of days, calculating the calendar starts with alternating months of 30 and 29 days. This gives an average of days and a 12-month total of 354 days. Starting from there, the month lengths are changed as follows: