how early for gender?

Hunter
So I'm hoping to be able to find out the gender my the end of May, I'll be 17 almost 18 weeks. When can I get an accurate ultra sound revealing the gender?