If you wanted to make it a round trip, all in all, it would take about 21 months, as you'll need to wait about three months on Mars to make sure Earth and Mars are in a suitable location to make the trip back home.