irr function

The IRR is returned as an effective rate with periodicity equal to that of the cashflow