UNPKG

@gooddata/react-components

Version:

GoodData.UI - A powerful JavaScript library for building analytical applications

12 lines (11 loc) 383 B
export interface IXirrInput { amount: number; when: Date; } /** * Calculates the XIRR value for the (amount, when) pairs. * @see https://en.wikipedia.org/wiki/Internal_rate_of_return#Exact_dates_of_cash_flows for mathematical background. * @param transactions * @param guess */ export declare const calculateXirr: (transactions: IXirrInput[], guess?: number) => number;