The longest I nursed was almost 2.5 years, the others only about 1. Eating and drinking from a cup just sort of replaced it gradually.
I had milk long after though, went away eventually. So, I'm guessing a cumulative number of years nursing might have something to do with that.