Updated computeMonthsBetweenDates to use Calendar functions.