Added a check if month has < 31 days