What's ideal

What is the appropriate time to stop breastfeeding?