Selection of Optimal Threshold and Near-Optimal Interval Using Profit Function and ROC Curve: A Risk Management Application