A series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive and one negative value.
A schedule of payment dates that corresponds to the cash flow payments. The first date is treated as the starting date and all dates must be on or after this date.
Optionalguess: number = 0.1A number that you guess is close to the result.
Must be greater than -1.
The internal rate of return.
Calculates the internal rate of return for a schedule of cash flows that is not necessarily periodic. To calculate the internal rate of return for a series of periodic cash flows, use the
irr()function.Remarks:
valuesanddatesmust be arrays of equal length, with at least 2 entries.valuesmust contain at least one positive and one negative cash flow.datesmust be validDateobjects, and no date may precede the first date in the array.guessfor the calculation. If omitted,guessdefaults to0.1(10 percent).guessmust be greater than-1.xirr()is closely related toxnpv(), the net present value function. The rate of return calculated byxirr()is the interest rate corresponding to XNPV = 0.