Fix date calculation bug with December

Was not handling roll over from December to January.