Add analytic for irr and npv