Right Endpoint Rule Calculator