How long did Gatsby stay with and learn fron Dan Cody?

Gatsby stays with dan Cody for 5 years