Fixed error in computation of months between two dates