A General Estimator for the Right Endpoint