xirr function

The IRR is returned as an effective annual rate