How to know where to place SM for yoke?

How do you know where to put the stitch markers for increases for a sweater? Like this step?

How do you know where to put the stitch markers for increases for a sweater? Like this step?