Formula and methodology
Shares after = shares − shares bought back. EPS = net income ÷ shares. Buyback cost = shares bought back × price. This simple view holds net income constant and ignores lost interest on the cash used.
Worked example
With Shares outstanding 1,00,00,000, Shares to be bought back 5,00,000, Buyback price per share 250, Net income 30,00,00,000, the calculator gives: Shares after buyback = 95,00,000; EPS before = 30; EPS after (net income unchanged) = 31.58; Cash spent on buyback = 12,50,00,000; EPS increase (%) = 5.26.
How to read the result
Higher EPS from a buyback is partly arithmetic. In practice the cash spent would have earned interest or been invested elsewhere, so the real effect on value depends on the price paid versus intrinsic value.