Baby’s gender

When did you find out baby’s gender? Like how many weeks?