fintech-algorithms
Using a coding agent? Give it the skill: npx skills add IslamBaraka90/Fintech-Algorithms-Library What it does →

Statement Ratios

6 algorithms in Fundamental Analysis and Valuation · 6 with asserted arithmetic.

In this family#

  1. DuPont Decomposition verified

    Splits return on equity into net profit margin, asset turnover and equity multiplier, using period-average assets and equity as the denominators, and reports the gap between the three-factor product and return on equity taken directly as net_income / average_equity.

    dupontDecomposition(input)
  2. ROIC Calculation verified

    Computes NOPAT as operating profit less tax at a normalized rate, then divides it by average invested capital, where invested capital at each end of the period is operating assets minus operating liabilities.

    roicCalculation(input)
  3. Cash Conversion Cycle verified

    Turns average receivables, inventory and trade payables into days sales outstanding, days inventory outstanding and days payables outstanding over a stated day count, then reports the cash conversion cycle as DIO plus DSO minus DPO.

    cashConversionCycle(input)
  4. Interest-Coverage Ratio verified

    Divides EBIT by gross interest expense on the times-interest-earned convention and reports how much of the interest bill earnings fail to cover.

    interestCoverageRatio(input)
  5. Net-Debt/EBITDA verified

    Builds EBITDA by adding interest, income tax and depreciation and amortization back to net income, nets borrowings against cash under a declared lease policy, and divides net debt by EBITDA.

    netDebtToEbitda(input)
  6. Common-Size Statements verified

    Divides every line item of each period by that period's own base line to give common-size percentages, and tracks one focus line's percentage and its change in percentage points against the previous period.

    commonSizeStatements(input)

What they share#

Every topic here is a record-transform, so once you have called one the rest follow the same shape. Import paths differ only in the final segment:

ts
import { dupontDecomposition } from "fintech-algorithms/fundamental-analysis-and-valuation/statement-ratios/dupont-decomposition";
import { roicCalculation } from "fintech-algorithms/fundamental-analysis-and-valuation/statement-ratios/roic-calculation";

Read them in the order above — the sequence is pedagogical, not alphabetical.

Where this sits#

Fundamental Analysis and Valuation collects 52 algorithms across 6 families. For the concept behind this family rather than the call signatures, see the concept guides.