The algorithm on this page is based upon the PlanarCheck source by Philippe Hurbain.
My implementation for the 'suggestion' is a quick-and-dirty narrow-down, but it will get the job done.
(It's possible to do a real calculation, though, but this tool does not do that; it only retries over and over and delivers the best value found).