Using tangents to determine rate