adding month logic