fix month/year calculation