# Earnings and Per-Share Analytics — fintech-algorithms > 5 algorithms in 2 families, sliced out of the > fintech-algorithms reference. Zero-dependency TypeScript: plain arrays and objects in, > plain values out. This file covers D46 only. D46 · 5 topics · 2 families · 0 verified Install: npm install fintech-algorithms Agent skill (install it rather than re-deriving this file): npx skills add IslamBaraka90/Fintech-Algorithms-Library what it is: https://docs.thefintechbuilder.com/guides/agent-skill/ Source: fintech-algorithms@0.12.0 · payload schema 2.0.0 Reference payload: https://docs.thefintechbuilder.com/reference/payload.json Version endpoint: https://docs.thefintechbuilder.com/version.json Domain page: https://docs.thefintechbuilder.com/earnings-and-per-share-analytics/ Full index (324 topics across 13 domains): https://docs.thefintechbuilder.com/llms.txt Verification tiers: - verified — the worked example is the figure published in the algorithm's article, replayed and asserted by the test suite on every run. The arithmetic cannot drift without the build failing. Treat the numbers as reproducible. - contract — the module loads, the entry point is callable and its declared signature matches the compiled code. The example is real captured output, but no independently published figure asserts it. Treat the shape as reliable and the numbers as unattested. Full explanation: https://docs.thefintechbuilder.com/guides/verification/ Each entry: name — signature — archetype — verification tier — docs URL From the docs URL, mechanically: import subpath — swap the https://docs.thefintechbuilder.com/ prefix for fintech-algorithms/ and drop the trailing slash markdown page — append index.md; same contract as the HTML page, a fraction of the bytes ## D46-F01 — Earnings and Share Foundations https://docs.thefintechbuilder.com/earnings-and-per-share-analytics/earnings-and-share-foundations/ - Stock-Split/Consolidation EPS Restatement — `restateEpsForCapitalEvents(input)` — record-transform — contract — https://docs.thefintechbuilder.com/earnings-and-per-share-analytics/earnings-and-share-foundations/stock-split-consolidation-eps-restatement/ - Basic EPS — `calculateBasicEps(input)` — record-transform — contract — https://docs.thefintechbuilder.com/earnings-and-per-share-analytics/earnings-and-share-foundations/basic-eps/ ## D46-F02 — Basic and Diluted EPS https://docs.thefintechbuilder.com/earnings-and-per-share-analytics/basic-and-diluted-eps/ - If-Converted Convertible-Preference Dilution — `calculateConvertiblePreferenceDilution(input)` — record-transform — contract — https://docs.thefintechbuilder.com/earnings-and-per-share-analytics/basic-and-diluted-eps/if-converted-convertible-preference-dilution/ - Treasury-Share Method for Options/Warrants — `calculateTreasuryShareMethod(input)` — record-transform — contract — https://docs.thefintechbuilder.com/earnings-and-per-share-analytics/basic-and-diluted-eps/treasury-share-method-for-options-warrants/ - Contingently Issuable Shares — `calculateContingentShareInclusion(input)` — record-transform — contract — https://docs.thefintechbuilder.com/earnings-and-per-share-analytics/basic-and-diluted-eps/contingently-issuable-share-inclusion/