Depends on the child
Some kids need more nurturing than others and will seek out the cuddle time at the breast well into the 2nd yr. If your infant needs cuddle time, do as long as desired.
When kids start to walk, they may loose interest in cuddle time. When you have to chase them down to bf its time to quit. Bottles are easy, when baby will take well from a hard spout sippy cup start the wean.