values: cash flow
guess: an estimate of what the result should be
IRR calculates the internal rate of return of a cash flow with periodic payments. values lists the payments (negative values) and receipts (positive values) for each period.
The optional guess is needed because there can be more than one valid result. It defaults to 10%.