month logic without printing plus tests