UNPKG

@spaik/mcp-server-roi

Version:

MCP server for AI ROI prediction and tracking with Monte Carlo simulations

31 lines 1.25 kB
export declare class FinancialCalculator { private logger; /** * Calculate Net Present Value (NPV) * @param cashFlows Array of cash flows (negative for costs, positive for benefits) * @param discountRate Monthly discount rate (e.g., 0.1/12 for 10% annual) */ calculateNPV(cashFlows: number[], discountRate: number): number; /** * Calculate Internal Rate of Return (IRR) * Uses Newton's method for approximation */ calculateIRR(cashFlows: number[], initialGuess?: number): number; /** * Calculate payback period in months */ calculatePaybackPeriod(cashFlows: number[]): number; /** * Calculate 5-year ROI percentage */ calculate5YearROI(totalCosts: number, monthlyBenefits: number, ongoingMonthlyCosts?: number): number; /** * Generate monthly cash flows from costs and benefits */ generateCashFlows(initialInvestment: number, monthlyBenefits: number, timelineMonths: number, implementationMonths?: number, rampUpMonths?: number, ongoingMonthlyCosts?: number): number[]; /** * Calculate break-even date */ calculateBreakEvenDate(startDate: Date, paybackPeriodMonths: number): Date; } //# sourceMappingURL=financial.d.ts.map