Handle variable months