60 Goodwill, Acquired In-Process Research and Development and Other Intangible Assets Restructuring Contingencies Advertising and Product Promotion Costs Foreign Currency Translation Research and Development Research and development costs are expensed as incurred. Clinical study costs are accrued over the service periods specified in the contracts and adjusted as necessary based upon an ongoing review of the level of effort and costs actually incurred. Research and development costs are presented net of reimbursements from alliance partners. Upfront and contingent development milestone payments for asset acquisitions of investigational compounds are also included in research and development expense if there are no alternative future uses. Foreign subsidiary earnings are translated into U.S. dollars using average exchange rates. The net assets of foreign subsidiaries are translated into U.S. dollars using current exchange rates. The U.S. dollar effects that arise from translating the net assets of these subsidiaries at changing rates are recognized in Other Comprehensive (Loss)/Income. Advertising and product promotion costs are expensed as incurred. Advertising and product promotion costs are included in Marketing, selling and administrative expenses and were $672 million in 2018, $740 million in 2017 and $789 million in 2016. Loss contingencies from legal proceedings and claims may occur from government investigations, shareholder lawsuits, product and environmental liability, contractual claims, tax and other matters. Accruals are recognized when it is probable that a liability will be incurred and the amount of loss can be reasonably estimated. Gain contingencies (including contingent proceeds related to the divestitures) are not recognized until realized. Legal fees are expensed as incurred. Restructuring charges are recognized as a result of actions to streamline operations and reduce the number of facilities. Estimating the impact of restructuring plans, including future termination benefits and other exit costs requires judgment. Actual results could vary from these estimates. Finite-lived intangible assets are tested for impairment when facts or circumstances suggest that the carrying value of the asset may not be recoverable. If the carrying value exceeds the projected undiscounted pretax cash flows of the intangible asset, an impairment loss equal to the excess of the carrying value over the estimated fair value (discounted after-tax cash flows) is recognized. IPRD is tested for impairment on an annual basis and more frequently if events occur or circumstances change that would indicate a potential reduction in the fair values of the assets below their carrying value. Impairment charges are recognized to the extent the carrying value of IPRD is determined to exceed its fair value. Goodwill is tested at least annually for impairment by assessing qualitative factors or performing a quantitative analysis in determining whether it is more likely than not that the fair value of net assets are below their carrying amounts. Examples of qualitative factors assessed include our share price, financial performance compared to budgets, long-term financial plans, macroeconomic, industry and market conditions as well as the substantial excess of fair value over the carrying value of net assets from the annual impairment test performed in a prior year. Each relevant factor is assessed both individually and in the aggregate. Finite-lived intangible assets, including licenses, developed technology rights and IPRD projects that reach commercialization are amortized on a straight-line basis over their estimated useful life. Estimated useful lives are determined considering the period the assets are expected to contribute to future cash flows. The fair value of acquired intangible assets is typically determined using an income-based approach referred to as the excess earnings method utilizing Level 3 fair value inputs. The market participant valuations assume a global view considering all potential jurisdictions and indications based on discounted after-tax cash flow projections, risk adjusted for estimated probability of technical and regulatory success (for IPRD).