How do you stop BF??

Coco

So my baby will be 7 months soon; I think, I want to stop EBF, at 9 months... how do I do this? How do I teach baby to stop breastfeeding?? How do I stop producing milk? How much formula does a 9 month old need? Will this change, from breastmilk to formula, affect my baby in any way? Does formula cause gas or constipation?? I’m clueless; ftm.. never have given baby, formula.. Trying to get informed though.. part of me just wants to go a year, so I don’t confuse him