What popular vote margin would the democrats need in 2018 to regain the house

I was thinking The Pit but the ruling appears to address the popular vote margin issue given how irritated Republican Karen Handel is with the ruling.