Provide an example to illustrate the difference between IRR and XIRR.
Consider an investment with cash flows: $1,000 (Year 0), $500 (Year 1), $750 (Year 2), and $1,000 (Year 3). The IRR is 10%, while the XIRR is 12% due to considering cash flow timing.