Depends on you+baby
How long you are able to breastfeed is a personal decision based on family decisions, return to work plans, and ultimately what is comfortable for you and when the baby loses interest.
Ideally 6-12 months would be great, but some "breastfeeding
pairs" don't make it that long. It really is a personal, individual issue.