Calculate the Internal Rate of Return (IRR) and Net Present Value (NPV) for an investment with irregular cash flows over multiple periods.