Column headers with buttons are sortable. Gross Profit $820,000 Cost basis -($297,500) CAPITAL GAINS =$522,500