corrected month&year calculation