Earnings and Share Foundations
2 algorithms in Earnings and Per-Share Analytics.
In this family#
-
Stock-Split/Consolidation EPS Restatement contract
Restates EPS for splits and consolidations across every period presented. Accounting standards require retrospective restatement — comparatives must be restated too, and a table where only the current period was adjusted is wrong in a way that looks like growth.
restateEpsForCapitalEvents(input) -
Basic EPS contract
Basic earnings per share: profit attributable to ordinary shareholders over the weighted average shares outstanding. Both halves are subtler than they look — the numerator is after preference dividends, and the denominator is time-weighted, not a period-end count.
calculateBasicEps(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:
import { restateEpsForCapitalEvents } from "fintech-algorithms/earnings-and-per-share-analytics/earnings-and-share-foundations/stock-split-consolidation-eps-restatement";
import { calculateBasicEps } from "fintech-algorithms/earnings-and-per-share-analytics/earnings-and-share-foundations/basic-eps";Read them in the order above — the sequence is pedagogical, not alphabetical.
Where this sits#
Earnings and Per-Share Analytics collects 5 algorithms across 2 families. For the concept behind this family rather than the call signatures, see the concept guides.