Myles, a single taxpayer, purchased a home in September 2017. He owned and lived in the home for eighteen months. He then sold it in March 2019 for a long-term gain of $300,000. How much of the gain can Myles exclude from income on his return?