fix month calculation