The formula for calculating the shares outstanding consists of subtracting the shares repurchased from the total shares issued to date.
A publicly traded company's total number of shares outstanding can usually be found on their investor relations webpage, on stock exchanges' websites, or in the shareholder's equity section on a company's balance sheet as filed with an authorized information service like the U.S. Securities and Exchange Commission.