Question: why use xirr instead of irr?
Answer: So the primary difference between the two is that the =XIRR formula provides some additional flexibility, and has been adjusted to accommodate incongruous time periods. If the =IRR formula is used in any scenario where the time periods between cash flows are not equivalent, it will return an incorrect value.