Python for programmers, prompts for data analysts.

In the last part, I added up what four companies handed back to their owners: dividends, buybacks and debt paydown. For buybacks, I used the net figure — what a company spent buying back
shares, minus what it raised by selling new ones.

That subtraction misses something. Most large companies pay their employees partly in shares. Much of that pay comes as restricted stock, which brings in no cash, so it never appears as
"issued stock" in the cash flow statement. But the new shares still add to the share count. A buyback has to absorb them before the owners' slice gets any bigger.

For Alphabet, this is not a rounding error. Over ten years, it recorded $152 billion in stock-based pay, against $345 billion of net buybacks.

This part also starts differently. Under Part 40, a reader, @automation.labs, pointed out that a model pulling numbers through the MCP will add up whatever it's given. So before adding
anything, the first prompt asks Claude to check the numbers.

Want to try this yourself? The EODHD MCP Server is what pulled the data in this article — connect it to Claude and ask your own questions
(affiliate link).

New here? The Setup covers everything you need before your first prompt.

Check before you add

Before adding anything up, I asked Claude to check the data first. The idea comes from the reader's comment: compare each yearly figure with its four quarters, and flag anything that
doesn't match.

🟧 PROMPT

Use the eodhd MCP to get the yearly and quarterly cash flow statements for Apple, Alphabet, Coca- Cola and Verizon for the last ten fiscal years. Before totaling anything, check that the four quarters add up to each yearly figure for buybacks, dividends, borrowing and stock-based pay. List every mismatch. 

Out of 40 checks per company, Apple has 4 mismatches, Alphabet 4, Coca-Cola 8 and Verizon 11. The largest: Apple's buybacks for fiscal 2021 are $86.0 billion for the year but $153.0
billion across the quarters. Coca-Cola's first-quarter dividends are around $9.6 billion in several years, against about $1.7 billion in the other quarters. Verizon's 2016 buyback line is
$17.95 billion for the year but almost zero in the quarters. Verizon's stock-based pay for 2024 and 2025 is missing entirely.

The check works: it found the Verizon error from Part 40 on its own. But a mismatch only says that two numbers disagree. It doesn't say which one is wrong. For that, you need a source
outside the dataset, and for US companies, the best one is free: the annual report filed with the SEC.

🟧 PROMPT

Find Apple's 10-K for fiscal 2021 and Alphabet's 10-K for 2016 on the SEC website. What do they report for share repurchases for the full year? 

Apple's cash flow statement shows "Repurchases of common stock (85,971)", which is $85,971 million for the year ended September 25, 2021. Alphabet's 10-K says that during 2016, it
repurchased and retired about 5.2 million Class C shares for about $3.7 billion.

Both match the yearly figures from EODHD. So in both cases, the quarters were wrong and the years were right.

It doesn't always go that way. Coca-Cola pays about the same dividend every quarter, so a first quarter five times bigger is a quarterly error. But for Verizon in 2016, it's the yearly
figure that's wrong.

The missing Verizon numbers are a different kind of problem. A blank isn't a zero. A model that adds up a column can quietly treat it as one.

For this article, the numbers that matter are Apple's and Alphabet's buybacks and stock-based pay. Their stock-based pay passed the check in every year, and both buyback mismatches turned
out to be quarterly errors. So the yearly figures are the ones to use.

Shares that come back

With the data checked, the main question can go in.

🟧 PROMPT

Use the eodhd MCP to compare each year's net buybacks with stock-based pay for Alphabet and Apple over their last ten fiscal years. What share of the buybacks did stock-based pay match? 

Over ten years, Alphabet recorded $152 billion in stock-based pay against $345 billion in net buybacks, or 44%. In 2016, 2017 and 2018, stock-based pay was larger than the buybacks.
Apple recorded $89 billion against $766 billion, or 12%, and the share stayed between 7% and 16% every year.

Alphabet's net buybacks and stock-based pay, year by year.

The two companies look alike in Part 40. Both return most of their cash through buybacks. Here they split apart.

At Apple, stock-based pay is a small cost next to a huge buyback. Most of what Apple spends really does shrink the share count.

At Alphabet, a large part of the buyback goes into absorbing new shares given to employees. In its first three years of buybacks, the company handed out more in stock than it bought back.
Even in its biggest years, stock pay matched about a third of the buyback.

That shows up in the share count. Over ten years, Apple's share count fell by 32%. Alphabet's fell by 12%, even though it spent $345 billion on buybacks.

The buyback yield, adjusted

If part of a buyback only absorbs shares handed to employees, that part doesn't return anything to the owners. So the last question takes it out.

🟧 PROMPT

Use the eodhd MCP to subtract each company's stock-based pay from its net buybacks for the last fiscal year. Show the buyback yield and the shareholder yield from Part 40 before and after, as a percentage of today's market value. 

Apple's buyback yield falls from 1.74% to 1.46%, and its shareholder yield from 2.42% to 2.14%. Alphabet's buyback yield falls from 1.36% to 0.62%, and its shareholder yield from 0.70%
to about zero. Coca-Cola's changes very little, from 2.23% to 2.16%. Verizon's stock-based pay for 2025 is missing in the data, so its figure can't be adjusted.

Company Buyback yield After stock pay Shareholder yield After stock pay
Apple 1.74% 1.46% 2.42% 2.14%
Coca-Cola 0.11% 0.04% 2.23% 2.16%
Verizon 0.00% n/a 1.93% n/a
Alphabet 1.36% 0.62% 0.70% −0.04%

Alphabet's case stands out. In Part 40, borrowing had already pulled its shareholder yield below 1%. Stock-based pay takes away the rest. Measured this way, Alphabet returned almost
nothing to its owners in 2025, even though it spent $45.7 billion on buybacks.

Apple stays at the top. Coca-Cola and Verizon pay mostly in dividends, so the adjustment hardly touches them.

This adjustment isn't part of Faber's original definition. Analysts disagree about whether to make it, and stock-based pay as a cost isn't exactly the same as the value of the new shares.
But it answers a fair question: how much of the buyback actually made the owners' slice bigger?

A word of honesty

Stock-based pay isn't the same as new shares. The figure in the cash flow statement is a cost, spread over the years an employee works for the shares. The shares themselves arrive
later, when the awards vest. Companies also keep some of those shares back to cover employees' taxes, so fewer new shares reach the market than the cost suggests. Subtracting the full cost
from buybacks is a rough adjustment, not an exact one. Read it as a direction, not a precise number.

The checks find problems; they don't fix them. The quarterly check flagged 27 mismatches across four companies. Some were errors in the yearly figures, more were errors in the
quarters, and one was a number that was simply missing. Only an outside source, here the SEC filings, could say which was which. The same reader suggested two more checks under Part 40:
comparing buybacks and borrowing with the total financing cash flow, and comparing net borrowing with the change in debt on the balance sheet. Those work better for borrowing than for
stock pay, but the idea is the same. Make the data agree with itself before you trust a total.

One year, at today's prices. The yields use the last fiscal year's cash flows and market values from November 2026. Alphabet's 2025 was a year of heavy borrowing and high stock pay.
Another year could look different.

This is not investment advice.

Final Thoughts

This is the forty-first article in the series Unlock Real-Time Market Intelligence with EODHD and Claude. It continues Part 40, which added buybacks and debt paydown to the dividend.

Two things came out of it.

The first is about the data. Checking before adding found 27 mismatches in four companies' cash flow statements. Most of them would have slipped into a ten-year total without anyone
noticing. The fix wasn't a better prompt alone. It was a check inside the prompt, and an outside source for whatever the check flagged.

The second is about buybacks. A buyback only returns cash to owners after it has absorbed the shares handed to employees. At Apple, that takes about an eighth of the money. At
Alphabet, it takes close to half, and in 2025 it brought its shareholder yield down to about zero.

Next time, something lighter for the holidays: the Santa Claus rally. Stocks are supposed to rise in the last five trading days of December and the first two of January. Recent research
suggests the effect has faded. I'll check it on the S&P 500 with EODHD data, and look at whether it faded after the pattern got its name in 1973.

If this made you curious, the MCP Server is free to try — The Setup walks you through it.

← Part 40: Twenty Times Apart, Almost Equal: Dividend Yield vs. Shareholder Yield