Left And Right Endpoint Calculator