Peterson Company purchased machinery for $960,000 on January 1, 2014. Straight-line depreciation has been recorded based on a $60,000 salvage value and a 5-year useful life. The machinery was sold on May 1, 2018 at a gain of $18,000. How much cash did Peterson receive from the sale of the machinery?