Budget-Constrained Optimal Retention With an Upper Limit on the Retained Loss