| Summary of Marketable Securities |
As of January 31, 2020 and 2019, our marketable securities consisted of the following: | | | | | | | | | | | | | | | | | | | | | | | | | As of January 31, 2020 | | | | | | | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Estimated Fair Value | | | | | | | | | | (in thousands) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commercial paper | $ | 37,894 | | | $ | — | | | $ | — | | | $ | 37,894 | | | Agency bonds | 141,157 | | | 49 | | | (43) | | | 141,163 | | | Corporate and other debt securities | 320,407 | | | 775 | | | (16) | | | 321,166 | | | U.S. government agency securities | 71,794 | | | 45 | | | (2) | | | 71,837 | | | | | | | | | | | Marketable securities | $ | 571,252 | | | $ | 869 | | | $ | (61) | | | $ | 572,060 | |
| | | | | | | | | | | | | | | | | | | | | | | | | As of January 31, 2019 | | | | | | | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Estimated Fair Value | | | | | | | | | | (in thousands) | | | | | | | | | | | | | | | | | | | | | | | | Commercial paper | $ | 1,243 | | | $ | — | | | $ | — | | | $ | 1,243 | | | Corporate bonds | 53,267 | | | — | | | (53) | | | 53,214 | | | Agency bonds | 32,675 | | | — | | | (71) | | | 32,604 | | | U.S. government agency securities | 24,028 | | | — | | | (11) | | | 24,017 | | | Treasury bills | 1,699 | | | — | | | — | | | 1,699 | | | Marketable securities | $ | 112,912 | | | $ | — | | | $ | (135) | | | $ | 112,777 | |
|
| Summary of Contractual Maturities of Marketable Securities |
The following table presents the contractual maturities of our marketable securities as of January 31, 2020 and 2019: | | | | | | | | | | | | | As of January 31, | | | | 2020 | | 2019 | | | | | | (in thousands) | | | | Less than one year | $ | 315,900 | | | $ | 85,077 | | | Due in one to five years | 256,160 | | | 27,700 | | | Total | $ | 572,060 | | | $ | 112,777 | |
|