Show HN: Every site gives a different P/E ratio, so I open-sourced the math
The article discusses the inconsistencies in financial metrics reported by different websites, highlighting the need for transparency in calculation methods. The author introduces the FinanceToolkit, an open-source toolkit that provides transparent calculations for over 200 financial ratios and indicators. The toolkit aims to promote consistent and universally understood methods and formulas, allowing users to avoid dependence on metrics from other providers with unclear methods.
- ▪The Price-to-Earnings ratio for Microsoft is reported differently across various websites, including Stockopedia, Morningstar, and Yahoo Finance.
- ▪The FinanceToolkit is an open-source toolkit that provides transparent calculations for over 200 financial ratios and indicators.
- ▪The toolkit supports a wide range of financial instruments, including Equities, Options, Currencies, Cryptocurrencies, ETFs, Mutual Funds, and Indices.
Hacker News (Newest) files mainly under programming. We currently carry 5,306 of its stories.
Story provenance
Source · retrieval · rights · ranking — open for full record
inspect →
Story provenance
Attribution is not the same as permission. This drawer separates discovery metadata, excerpts, WeSearch-generated summaries, reuse status, and whether the publisher receives the visit. Nothing here claims a legal grant the publisher has not made.
Record
| Original publisher | GitHub |
| Canonical URL | https://github.com/JerBouma/FinanceToolkit |
| Publication time | Fri, 26 Jun 2026 06:13:19 +0000 |
| Retrieval time | 2026-06-26T06:37:29.198Z |
| Last seen | 2026-06-26T06:37:29.198Z |
| Headline source | Publisher (no WeSearch rewrite) |
| Excerpt source | publisher body |
| Excerpt method | First ~120 words (~800 chars) of extracted publisher body, fair-use limited. |
| Summary | WeSearch · cerebras-chat (WeSearch summarizer) |
| Summary source text | contentText |
| Citation coverage | Summary is a WeSearch-generated derivative; primary citation is the original publisher URL. |
| Cluster | BxmlJxKPuGve |
| Cluster logic | Grouped by semantic title/content similarity across sources within a rolling window. Same-publisher template collisions are excluded from coverage comparison. |
| Ranking reason | Story pages are not engagement-ranked. Hub feeds use recency, with optional source-diversified chronological ordering (cap consecutive stories per source). No personalized ranking. |
| Publisher visit | Yes — open original |
| Substitutes article? | No — link-out required for full text |
Rights status (four layers)
WeSearch handling by dimension
| Indexing | May the item be indexed (stored, ranked, made findable)? | Allowed |
| Snippet | May a short excerpt of the publisher's text be shown? | Allowed |
| AI summary | May WeSearch generate its own short summary of the article? | Limited |
| Retrieval / RAG | May the content be exposed for third-party retrieval-augmented generation? | Not asserted |
| Model training | May the content be used to train AI models? | Not asserted |
| Commercial reuse | May the content be reused commercially? | Not permitted |
Basis: Derived from the published RSS/Atom feed. Contact: [email protected]. Reviewed: 2026-07-24.
Opening excerpt (first ~120 words) tap to expand
While browsing a variety of websites, I repeatedly observed significant fluctuations in the same financial metric among different sources. Similarly, the reported financial statements often didn't line up, and there was limited information on the methodology used to calculate each metric. For example, Microsoft's Price-to-Earnings (PE) ratio on the 6th of May, 2023 is reported to be 28.93 (Stockopedia), 32.05 (Morningstar), 32.66 (Macrotrends), 33.09 (Finance Charts), 33.66 (Y Charts), 33.67 (Wall Street Journal), 33.80 (Yahoo Finance) and 34.4 (Companies Market Cap). All of these calculations are correct, however the method of calculation varies leading to different results.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.