i = adjlbi(lower_cmc1,upper_cmc1,lower_cmc2,upper_cmc2,interval);
The
adjlbi function adjusts the lower bound of the
century month code (CMC) of an event based on an interval. It is generally used to calculate the minimum
next date of birth based on a date of birth and a minimum number of months allowed between births.
The lower_cmc1 argument is a numeric expression generally representing the date of birth CMC of a child. The upper_cmc1 argument is not used (but is used by adjubi). The lower_cmc2 and upper_cmc2 arguments are numeric expressions generally representing the date of birth CMC range of the child that was born after the child represented in lower_cmc1. The interval argument is a numeric expression expressing the minimum number of months between events, which is generally the minimum number of months allowed to pass between a woman's successive childbirths.
The function returns the adjusted lower bound of the CMC of an event based on the number of months represented by the interval. If the adjusted lower bound is greater than upper_cmc2, the function returns the error code of -1. It the adjusted lower bound is otherwise valid, the function returns either the adjusted lower bound or lower_cmc2, whichever is greater.
t = adjlbi(ldc(i),udc(i),ldc(j),udc(j),7);