The last chain-sag calculation is robust to scenarios in which the min-point is both above and below the endpoints. The only time that becomes an issue is when using the simplified calculation which assumes a parabolic shape.
Here is the thread where this was discussed.
The equation on post 42 is the one to use.
However, it has to be manipulated to solve for s.