How long to pump?

Abigail
My son is 1 month old and EBF. I want to have a bit of freezer stash and have him take a breast milk bottle occasionally so I am going to start pumping once a day at the pediatrician's recommendation. Baby feedsfor anywhere from 15-40 mins a side. How many minutes should I pump?