Summary of major accounting policies | Summary of major accounting policies Basis of presentation The Consolidated Financial Statements include all subsidiaries in which the Company holds a controlling interest. Investments in less than majority-owned subsidiaries in which the Company does not have a controlling interest, but does have significant influence, are accounted for as equity method investments. All intercompany transactions have been eliminated. The preparation of financial statements in accordance with accounting principles generally accepted in the United States of America (“GAAP”) requires management to use judgment in the application of accounting policies, including making estimates and assumptions. The Company bases its estimates on the information available at the time, its experience and various other assumptions believed to be reasonable under the circumstances. Adjustments may be made in subsequent periods to reflect more current estimates and assumptions about matters that are inherently uncertain. Actual results may differ. The influence of certain holidays, seasonality, foreign currency rates, changes in vendor, payer and customer relationships and terms and other factors on the Company’s operations, net earnings for any period may not be comparable to the same period in previous years. With respect to the Company’s Retail Pharmacy USA segment, the positive impact on gross profit margins and gross profit dollars typically has been significant in the first several months after a generic version of a drug is first allowed to compete with the branded version, which is generally referred to as a “generic conversion”. In any given year, the number of major brand name drugs that undergo a conversion from branded to generic status can increase or decrease, which can have a significant impact on the Company’s Retail Pharmacy USA segment’s sales, gross profit margins and gross profit dollars. Cash and cash equivalents Cash and cash equivalents include cash on hand and all highly liquid investments with an original maturity of three months or less. Credit and debit card receivables from banks, which generally settle within two to seven business days, of $98 million and $114 million were included in cash and cash equivalents at August 31, 2017 and 2016 , respectively. Restricted cash The Company is required to maintain cash deposits with certain banks which consist of deposits restricted under contractual agency agreements and cash restricted by law and other obligations. As of August 31, 2017 and 2016 , the amount of such restricted cash was $202 million and $185 million , respectively, and is reported in other current assets on the Consolidated Balance Sheets. Accounts receivable Accounts receivable are stated net of allowances for doubtful accounts. Accounts receivable balances primarily include amounts due from third party providers (e.g., pharmacy benefit managers, insurance companies and governmental agencies), clients and members, as well as vendors and manufacturers. Charges to allowance for doubtful accounts are based on estimates of recoverability using both historical write-offs and specifically identified receivables. The allowance for doubtful accounts for fiscal 2017 , 2016 and 2015 was $158 million , $166 million and $172 million , respectively. Inventory The Company values inventories on a lower of cost or market basis. Inventory includes product costs, inbound freight, direct labor, warehousing costs for retail pharmacy operations, overhead costs relating to the manufacture and distribution of products and vendor allowances not classified as a reduction of advertising expense. The Company’s Retail Pharmacy USA segment inventory is accounted for using the last-in-first-out (“LIFO”) method. At August 31, 2017 and 2016 , Retail Pharmacy USA segment inventories would have been greater by $3.0 billion and $2.8 billion , respectively, if they had been valued on a lower of first-in-first-out (“FIFO”) cost or market basis. The total carrying value of the segment inventory accounted for under the LIFO method is $5.9 billion and $6.1 billion at August 31, 2017 and 2016 , respectively. The Company’s Retail Pharmacy International and Pharmaceutical Wholesale segments’ inventory is primarily accounted for using the FIFO method. The total carrying value of the inventory for Retail Pharmacy International and Pharmaceutical Wholesale segments is $3.0 billion and $2.9 billion at August 31, 2017 and 2016 , respectively. Equity method investments The Company uses the equity method to account for investments in companies if the investment provides the ability to exercise significant influence, but not control, over operating and financial policies of the investee. The Company’s proportionate share of the net income or loss of these companies is included in consolidated net earnings. Judgment regarding the level of influence over each equity method investment includes considering key factors such as the Company’s ownership interest, representation on the board of directors, participation in policy-making decisions and material intercompany transactions. The Company evaluates equity method investments for impairment whenever events or changes in circumstances indicate that the carrying amount of the investment might not be recoverable. Factors considered by the Company when reviewing an equity method investment for impairment include the length of time (duration) and the extent (severity) to which the fair value of the equity method investment has been less than cost, the investee’s financial condition and near-term prospects, and the intent and ability to hold the investment for a period of time sufficient to allow for anticipated recovery. An impairment that is other-than-temporary is recognized in the period identified. See note 5, equity method investments for further information relating to the Company’s equity method investments. Property, plant and equipment Depreciation is provided on a straight-line basis over the estimated useful lives of owned assets. Estimated useful lives range from 20 years for land improvements, 3 to 50 for buildings and building improvements and 3 to 20 for fixtures, plant and equipment. Leasehold improvements, equipment under capital lease and capital lease properties are amortized over their respective estimate of useful life or over the term of the lease, whichever is shorter. Major repairs, which extend the useful life of an asset, are capitalized; routine maintenance and repairs are charged against earnings. The majority of the Company’s fixtures and equipment uses the composite method of depreciation. Therefore, gains and losses on retirement or other disposition of such assets are included in earnings only when an operating location is closed, substantially remodeled or impaired. Property, plant and equipment consists of (in millions): 2017 2016 Land and land improvements $ 3,470 $ 3,738 Buildings and building improvements 7,431 7,557 Fixtures and equipment 9,209 9,064 Capitalized system development costs and software 2,105 1,787 Capital lease properties 745 789 22,960 22,935 Less: accumulated depreciation and amortization 9,318 8,600 Balance at end of year $ 13,642 $ 14,335 Depreciation and amortization expense for property, plant and equipment was $1.3 billion in fiscal 2017 , $1.3 billion in fiscal 2016 and $1.3 billion in fiscal 2015 . The Company capitalizes application stage development costs for significant internally developed software projects, such as upgrades to the store point-of-sale system. These costs are amortized over a three to eight year period. Amortization expense for capitalized system development costs and software was $245 million in fiscal 2017 , $238 million in fiscal 2016 and $178 million in fiscal 2015 . Unamortized costs at August 31, 2017 and 2016 were $0.9 billion and $0.9 billion , respectively. Business combinations Business combinations are accounted for under Accounting Standards Codification (“ASC”) Topic 805, Business Combinations, using the acquisition method of accounting. The cost of an acquired company is assigned to the tangible and intangible assets purchased and the liabilities assumed on the basis of their fair values at the date of acquisition. The determination of fair values of assets and liabilities acquired requires estimates and the use of valuation techniques when a market value is not readily available. Any excess of purchase price over the fair value of net tangible and intangible assets acquired is allocated to goodwill. The final determination of the fair value of certain assets and liabilities is completed within the one year measurement period as allowed under ASC Topic 805, Business Combinations. Transaction costs associated with business combinations are expensed as they are incurred. Goodwill and other intangible assets Goodwill represents the excess of the purchase price over the fair value of assets acquired and liabilities assumed. The Company accounts for goodwill and intangibles under ASC Topic 350, Intangibles – Goodwill and Other, which requires the Company to test goodwill and other indefinite-lived assets for impairment annually or whenever events or circumstances indicate that impairment may exist. Intangible assets are amortized on a straight line basis over their estimated useful lives. See note 7, goodwill and other intangible assets for additional disclosure regarding the Company’s intangible assets. Warrants Until their exercise in fiscal 2016, the warrants to acquire shares of AmerisourceBergen Corporation were accounted for as a derivative under ASC Topic 815, Derivatives and Hedging. The Company reports its warrants at fair value within other non-current assets in the Consolidated Balance Sheets and changes in the fair value of warrants are recognized in other income in the Consolidated Statements of Earnings. A deferred credit from the day-one valuation attributable to the warrants granted to Walgreens was amortized over the life of the warrants. See note 9, financial instruments, for additional disclosure regarding the Company’s warrants. Financial instruments The Company uses derivative instruments to hedge its exposure to interest rate and currency risks arising from operating and financing activities. In accordance with its risk management policies, the Company does not hold or issue derivative instruments for trading or speculative purposes. Derivatives are recognized on the Consolidated Balance Sheets at their fair values. When the Company becomes a party to a derivative instrument and intends to apply hedge accounting, it formally documents the hedge relationship and the risk management objective for undertaking the hedge which includes designating the instrument for financial reporting purposes as a fair value hedge, a cash flow hedge, or a net investment hedge. The accounting for changes in fair value of a derivative instrument depends on whether the Company had designated it in a qualifying hedging relationship and on the type of hedging relationship. The Company applies the following accounting policies: • Changes in the fair value of a derivative designated as a fair value hedge, along with the gain or loss on the hedged asset or liability attributable to the hedged risk, are recorded in the Consolidated Statements of Earnings. • The effective portion of changes in the fair value of a derivative designated as a cash flow hedge is recorded in accumulated other comprehensive income (loss) in the Consolidated Statements of Comprehensive Income and reclassified into earnings in the period or periods during which the hedged item affects earnings. • The effective portion of changes in the fair value of a derivative designated as a hedge of a net investment in a foreign operation is recorded in cumulative translation adjustments within accumulated other comprehensive income (loss) in the Consolidated Statements of Comprehensive Income. Recognition in earnings of amounts previously recorded in cumulative translation adjustments is limited to circumstances such as complete or substantially complete liquidation of the net investment in the hedged investments in foreign operations. • Changes in the fair value of a derivative not designated in a hedging relationship are recognized in the Consolidated Statements of Earnings along with the ineffective portions of changes in the fair value of derivatives designated in hedging relationships. Cash receipts or payments on a settlement of a derivative contract are reported in the Consolidated Statements of Cash Flows consistent with the nature of the underlying hedged item. For derivative instruments designated as hedges, the Company assesses, both at the hedge’s inception and on an ongoing basis, whether the derivatives that are used in hedging transactions are highly effective in offsetting changes in fair values or cash flows of hedged items. Highly effective means that cumulative changes in the fair value of the derivative are between 80% and 125% of the cumulative changes in the fair value of the hedged item. In addition, when the Company determines that a derivative is not highly effective as a hedge, hedge accounting is discontinued. When it is probable that a hedged forecasted transaction will not occur, the Company discontinues hedge accounting for the affected portion of the forecasted transaction, and reclassifies any gains or losses in accumulated other comprehensive income (loss) to earnings in the Consolidated Statement of Earnings. When a derivative in a hedge relationship is terminated or the hedged item is sold, extinguished or terminated, hedge accounting is discontinued prospectively. Impaired assets The Company tests long-lived assets for impairment whenever events or circumstances indicate that a certain asset may be impaired. Once identified, the amount of the impairment is computed by comparing the carrying value of the assets to the fair value, which is primarily based on the discounted estimated future cash flows. Impairment charges included in selling, general and administrative expenses were $234 million in fiscal 2017 , primarily related to the Company’s Cost Transformation Program (as defined below). Impairment charges recognized in fiscal 2016 and 2015 were $305 million and $386 million , respectively. Liabilities for store closings The Company provides for future costs related to closed locations. The liability is based on the present value of future rent obligations and other related costs (net of estimated sublease rent) to the first lease option date. The reserve for store closings, including locations closed under the Company’s restructuring actions, was $718 million as of August 31, 2017 and $466 million as of August 31, 2016 . See note 4, leases for additional disclosure regarding the Company’s reserve for future costs related to closed locations. Pension and postretirement benefits The Company has various defined benefit pension plans that cover some of its foreign employees. The Company also has postretirement healthcare plans that cover qualifying domestic employees. Eligibility and the level of benefits for these plans vary depending participants’ status, date of hire and or length of service. Pension and postretirement expenses and valuations are dependent on assumptions used by third party actuaries in calculating those amounts. These assumptions include discount rates, healthcare cost trends, long-term return on plan assets, retirement rates, mortality rates and other factors. See note 14, retirement benefits, for additional disclosure regarding the Company’s pension and postretirement benefits. The Company funds its pension plans in accordance with applicable regulations. Noncontrolling interests The Company accounts for its less than 100% interest in consolidated subsidiaries in accordance with ASC Topic 810, Consolidation, and accordingly, the Company presents noncontrolling interests as a component of equity on its Consolidated Balance Sheets and reports the portion of its earnings or loss for noncontrolling interest as net earnings attributable to noncontrolling interests in the Consolidated Statement of Earnings. Currency Assets and liabilities of non-U.S. dollar functional currency operations are translated into U.S. dollars at end-of-period exchange rates while revenues, expenses and cash flows are translated at average monthly exchange rates over the period. Equity is translated at historical exchange rates and the resulting cumulative translation adjustments are included as a component of accumulated other comprehensive income (loss) in the Consolidated Balance Sheets. For U.S. dollar functional currency operations, foreign currency assets and liabilities are remeasured into U.S. dollars at end-of-period exchange rates, except for nonmonetary balance sheet amounts, which are remeasured from historical exchange rates. Revenues and expenses are recorded at average monthly exchange rates over the period, except for those expenses related to nonmonetary balance sheet amounts, which are remeasured from historical exchange rates. Gains or losses from foreign currency remeasurement and transactions are included in selling, general and administrative expenses within the Consolidated Statements of Earnings. For all periods presented, there were no material operational gains or losses from foreign currency transactions. Revenue recognition Revenue is recognized when: (i) persuasive evidence of an arrangement exists, (ii) delivery has occurred or services have been rendered, (iii) the seller’s price to the buyer is fixed or determinable and (iv) collectability is reasonably assured. The following revenue recognition policies have been established for the Company’s reportable segments. Retail Pharmacy USA and Retail Pharmacy International The Company recognizes revenue at the time the customer takes possession of the merchandise, after making appropriate adjustments for estimated returns. Revenue does not include sales related taxes. In certain international locations, the Company initially estimates revenue based on expected reimbursements from governmental agencies for dispensing prescription drugs and providing optical services. The estimates are based on historical experience and are updated to actual reimbursement amounts. Pharmaceutical Wholesale Wholesale revenue is recognized upon shipment of goods, which is generally also the day of delivery. When the Company acts in the capacity of an agent or a logistics service provider, revenue is the fee received for the service and is recognized when the services have been performed. The Company has determined it is the agent when providing logistics services, which is based on its assessment of the following criteria: (i) whether it is the primary obligor in the arrangement, (ii) whether it has latitude in establishing the price, changing the product or performing part of the service, (iii) whether it has discretion in supplier selection, (iv) whether it is involved in the determination of service specifications and (v) whether it is exposed to credit risk. Cost of sales Cost of sales includes the purchase price of goods and services sold, store and warehouse inventory loss, inventory obsolescence, manufacturing costs, certain direct product design and development costs and supplier rebates. In addition to product costs, cost of sales includes manufacturing costs, warehousing costs for retail operations, purchasing costs, freight costs, cash discounts and vendor allowances. Cost of sales for our Retail Pharmacy USA segment is derived based upon point-of-sale scanning information with an estimate for shrinkage and is adjusted based on periodic inventory counts. Vendor allowances and supplier rebates Vendor allowances are principally received as a result of purchases, sales or promotion of vendors’ products. Allowances are generally recorded as a reduction of inventory and are recognized as a reduction of cost of sales when the related merchandise is sold. Those allowances received for promoting vendors’ products are offset against advertising expense and result in a reduction of selling, general and administrative expenses to the extent of advertising costs incurred, with the excess treated as a reduction of inventory costs. Rebates or refunds received by the Company from its suppliers, mostly in cash, are considered as an adjustment of the prices of the supplier’s products purchased by the Company. Selling, general and administrative expenses Selling, general and administrative expenses mainly consist of salaries and employee costs, occupancy costs, depreciation and amortization, credit and debit card fees and expenses directly related to stores. In addition, other costs included are headquarters’ expenses, advertising costs (net of vendor advertising allowances), wholesale warehousing costs and insurance. Advertising costs Advertising costs, which are reduced by the portion funded by vendors, are expensed as incurred or when services have been received. Net advertising expenses, which are included in selling, general and administrative expenses, were $571 million in fiscal 2017 , $598 million in fiscal 2016 and $491 million in fiscal 2015 . Loyalty programs The Company’s loyalty rewards programs are accrued as a charge to cost of sales at the time a point is earned. Points are funded internally and through vendor participation and are credited to cost of sales at the time a vendor-sponsored point is earned. Breakage is recorded as points expire as a result of a member’s inactivity or if the points remain unredeemed after a certain period in accordance with the terms of the loyalty rewards program. Breakage income, which is reported in cost of sales, was not significant in fiscal 2017 , 2016 or 2015 . Insurance The Company obtains insurance coverage for catastrophic exposures as well as those risks required by law to be insured. In general, the Company’s U.S. subsidiaries retain a significant portion of losses related to workers’ compensation, property, comprehensive general, pharmacist and vehicle liability, while non-U.S. subsidiaries manage their exposures through insurance coverage with third-party carriers. Management regularly reviews the probable outcome of claims and proceedings, the expenses expected to be incurred, the availability and limits of the insurance coverage and the established accruals for liabilities. Liabilities for losses are recorded based upon the Company’s estimates for both claims incurred and claims incurred but not reported and are not discounted. The provisions are estimated in part by considering historical claims experience, demographic factors and other actuarial assumptions. Stock compensation plans In accordance with ASC Topic 718, Compensation – Stock Compensation, the Company recognizes compensation expense on a straight-line basis over the employee’s vesting period or to the employee’s retirement eligible date, if earlier. See note 13, stock compensation plans for more information on the Company’s stock-based compensation plans. Income taxes The Company accounts for income taxes according to the asset and liability method. Under this method, deferred tax assets and liabilities are recognized based upon the estimated future tax consequences attributable to differences between the financial statement carrying amounts of existing assets and liabilities and their respective tax bases. Deferred tax assets and liabilities are measured pursuant to tax laws using rates expected to apply to taxable income in the years in which those temporary differences are expected to be recovered or settled. The effect on deferred tax assets and liabilities of a change in tax rate is recognized in income in the period that includes the enactment date. Valuation allowances are established when necessary to reduce deferred tax assets to the amounts more likely than not to be realized. In determining the provision for income taxes, the Company uses income, permanent differences between book and tax income, the relative proportion of foreign and domestic income, enacted statutory income tax rates, projections of income subject to Subpart F rules and unrecognized tax benefits related to current year results. Discrete events such as the assessment of the ultimate outcome of tax audits, audit settlements, recognizing previously unrecognized tax benefits due to lapsing of the applicable statute of limitations, recognizing or de-recognizing benefits of deferred tax assets due to future year financial statement projections and changes in tax laws are recognized in the period in which they occur. The Company is subject to routine income tax audits that occur periodically in the normal course of business. U.S. federal, state, local and foreign tax authorities raise questions regarding the Company’s tax filing positions, including the timing and amount of deductions and the allocation of income among various tax jurisdictions. In evaluating the tax benefits associated with the various tax filing positions, the Company records a tax benefit for uncertain tax positions using the highest cumulative tax benefit that is more likely than not to be realized. Adjustments are made to the liability for unrecognized tax benefits in the period in which the Company determines the issue is effectively settled with the tax authorities, the statute of limitations expires for the return containing the tax position or when more information becomes available. Earnings per share The dilutive effect of outstanding stock options on earnings per share is calculated using the treasury stock method. Stock options are anti-dilutive and excluded from the earnings per share calculation if the exercise price exceeds the average market price of the common shares. Outstanding options to purchase common shares that were anti-dilutive and excluded from earnings per share totaled 3.9 million , 2.5 million and 2.5 million in fiscal 2017 , 2016 and 2015 , respectively. New accounting pronouncements Adoption of new accounting pronouncements Modifications of share-based payments In May 2017, the Financial Accounting Standards Board (“FASB”) issued Accounting Standards Update (“ASU”) 2017-09, Compensation – Stock Compensation (Topic 718): Scope of Modification Accounting. This ASU clarifies which changes to the terms or conditions of a share-based payment award require an entity to apply modification accounting in Topic 718. Specifically, an entity would not apply modification accounting if the fair value, vesting conditions, and classification of the awards are the same immediately before and after the modification. This ASU is effective for fiscal years beginning after December 15, 2017 (fiscal 2019), and interims periods within those fiscal years. The Company early adopted this guidance on a prospective basis during the third quarter of fiscal 2017. The adoption did not have any impact on the Company’s results of operations, cash flows or financial position. Simplifying the test for goodwill impairment In January 2017, the Financial Accounting Standards Board (“FASB”) issued Accounting Standards Update (“ASU”) 2017-04, Intangibles – Goodwill and Other (Topic 350): Simplifying the Test for Goodwill Impairment. This ASU requires the Company to perform its annual, or applicable interim, goodwill impairment test by comparing the fair value of a reporting unit with its carrying amount. An impairment charge must be recognized at the amount by which the carrying amount exceeds the fair value of the reporting unit; however, the charge recognized should not exceed the total amount of goodwill allocated to that reporting unit. Income tax effects resulting from any tax deductible goodwill should be considered when measuring the goodwill impairment loss, if applicable. This ASU is effective for annual or interim goodwill impairment tests in fiscal years beginning after December 15, 2019 (fiscal 2021). The Company early adopted this guidance on a prospective basis during the second quarter of fiscal 2017. The adoption did not have any impact on the Company’s results of operations, cash flows or financial position. Clarifying the definition of a business In January 2017, the FASB issued ASU 2017-01, Business Combinations (Topic 805): Clarifying the Definition of a Business. This ASU clarifies the definition of a business in order to assist companies in the evaluation of whether transactions should be accounted for as acquisitions or disposals of assets or businesses. The amended guidance also removes the existing evaluation of a market participant’s ability to replace missing elements and narrows the definition of output to achieve consistency with other topics. This ASU is effective for fiscal years beginning after December 15, 2016 (fiscal 2018), and interim periods within those fiscal years. The Company early adopted this guidance on a prospective basis during the second quarter of fiscal 2017. The adoption did not have any impact on the Company’s results of operations, cash flows or financial position. Interests held through related parties under common control In October 2016, the FASB issued ASU 2016-17, Consolidation (Topic 810): Interests Held through Related Parties That Are under Common Control. This ASU amends the consolidation guidance on how a reporting entity that is the single decision maker of a variable interest entity (“VIE”) should treat indirect interests in the entity held through related parties that are under common control with the reporting entity when determining whether it is the primary beneficiary of that VIE. Under the amendments, a single decision maker is not required to consider indirect interests held through related parties that are under common control with the single decision maker to be the equivalent of direct interests in their entirety. Instead, a single decision maker is required to include those interests on a proportionate basis consistent with indirect interests held through other related parties. This ASU is effective for fiscal years beginning after December 15, 2016 (fiscal 2018), and interim periods within those fiscal years. The Company early adopted this guidance on a modified retrospective basis during the second quarter of fiscal 2017. The adoption did not have any impact on the Company’s results of operations, cash flows or financial position. Share-based payment accounting In March 2016, the FASB issued ASU 2016-09, Compensation – Stock Compensation (Topic 718): Improvements to Employee Share-Based Payment Accounting. This ASU simplifies the employee share-based payment accounting of stock compensation, including the income tax consequences, classification of awards as either equity or liabilities, and classification on the statement of cash flows. Amendments requiring recognition of excess tax benefits and tax deficiencies in the income statement and the practical expedient for estimating expected term must be applied prospectively. Amendments related to the presentation of employee taxes paid on the statement of cash flows when an employer withholds shares to meet the minimum statutory withholding requirement must be applied retrospectively. An entity may elect to apply the amendments related to the presentation of excess tax benefits on the statement of cash flows using either a prospective transition method or a retrospective transition method. This ASU is effective for fiscal years beginning after December 15, 2016 (fiscal 2018), and interim periods within those fiscal years. The Company early adopted this guidance on a prospective basis during the first quarter of fiscal 2017. The adoption did not have a material impact on the Company’s results of operations, cash flows or financial position. New accounting pronouncements not yet adopted Accounting for hedging activities In August 2017, the FASB issued ASU 2017-12, Derivative and Hedging (Topic 815): Targeted Improvements to Accounting for Hedging Activities. This ASU expands an entity’s ability to hedge nonfinancial and financial risk components and reduces complexity in fair value hedges of interest rate risk. It eliminates the requirement to separately measure and report hedge ineffectiveness and generally requires the entire change in the fair value of a hedging instrument to be presented in the same income statement line as the hedged item. It also eases certain documentation and assessment requirements and modifies the accounting for components excluded from the assessment of hedge effectiveness. This ASU is effective for fiscal years beginning after December 15, 2018 (fiscal 2020), and interims periods within those fiscal years, with earl |