Very simple (obviously oversimplified) ....
You need to tack on the favorable wind shifts; and, you need to be on the side of course that the wind is coming from.
Practice while using a
handheld GPS using the **VMG** function as the indicator - automatic course optimizer!
:-)