Corrected error in the way months were calculated