Is there a formula for calculating IRR with periodic investments as well as periodic cash flow? For example:
Date: Investment Date: Cash Flow
1/1/2017 (10,000) 12/31/2017 1,000
1/1/2018 (15,000) 12/31/2018 2,000
12/31/2019 3,000
12/31/2020 40,000