We’re rewarding the question askers & reputations are being recalculated! Read more.

The full answer is beyond the scope of StackExchange. A quick Astrogator tutorial for earth departure to Mars orbit can be found here. Ultimately you will need to use b-plane targeting if you want to get anywhere close to a gravity assist. Even for just simple targetting you will need to know the rough departure asymptote (normally from a Pork Chop plot) ...

Only top voted, non community-wiki answers of a minimum length are eligible