How is it calculated?
The worst case is assumed: the team in the relegation zone wins all its remaining games. Finishing above that guarantees survival.
Example
Your team on 34 and the rival on 28, both with 4 games left: the rival can reach 40; you need 7 points (3 wins).