Simplify the overflow index calculation (now based on root-finding).