When would one use XNPV or XIRR instead of NPV and IRR? Make up a simple capital

When would one use XNPV or XIRR instead of NPV and IRR?
Make up a simple capital budgeting problem and use XNPV to solve it.
Post your problem and solution.
Needs one citation. No need for formatting.