Handle month wrapping