How long did it take gastby to make the money to buy the mansion?

It is never mentioned in the novel The Great Gatsby about how Gatsby specifically obtained the money nor how long it took.