How long did you breastfeed for?

What’s a good amount of time to breastfeed for?