Updated the logic for handling months and days to improve date calculations. Also modified the constants for Excel date ranges to align with supported dates.