When to pump?

I read that you should pump when you are away from baby but I never am but will be. I want to stock for future use. I have tried pumping one side after she eats on thr other but then she is hungry an hour later and I'm worried I wont have enough in my breast for her.