Area under the curve calculator