Basis of Presentation | 2. Basis of Presentation Basis of presentation The consolidated financial statements have been prepared in accordance with accounting principles generally accepted in the United States (“GAAP”). Basis of consolidation The consolidated financial statements include the accounts of Blackbaud, Inc. and its wholly owned subsidiaries. All intercompany balances and transactions have been eliminated in consolidation. Use of estimates The preparation of financial statements in conformity with GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities and disclosure of contingent assets and liabilities at the date of the financial statements, as well as the reported amounts of revenues and expenses during the reporting periods. On an ongoing basis, we reconsider and evaluate our estimates and assumptions, including those that impact revenue recognition, long-lived and intangible assets , income taxes, business combinations, stock-based compensation, capitalization of software development costs, our allowances for sales returns and doubtful accounts, costs of obtaining contracts, valuation of derivative instruments and loss contingencies, among others. Changes in the facts or circumstances underlying these estimates could result in material changes and actual results could materially differ from these estimates. Recently adopted accounting pronouncements In February 2016, the Financial Accounting Standards Board ("FASB") issued Accounting Standards Update ("ASU") 2016-02, Leases (Topic 842) ("ASU 2016-02"). ASU 2016-02 requires lessees to record most leases on their balance sheet but recognize expenses in the income statement in a manner similar to previous guidance. The way in which entities classify leases determines how to recognize lease-related revenue and expense. We adopted ASU 2016-02 as of January 1, 2019 using the transition method that allowed us to initially apply the guidance at the adoption date of January 1, 2019 without adjusting comparative periods presented. We elected to use the package of practical expedients that allowed us to not reassess: (1) whether any expired or existing contracts are or contain leases, (2) lease classification for any expired or existing leases and (3) initial direct costs for any existing leases. We did not elect to use the hindsight practical expedient, which permits entities to use hindsight in determining the lease term and assessing impairment. Additionally, we elected not to apply the recognition requirements of the new lease accounting standard to short-term leases. Adopting ASU 2016-02 had a material impact on our consolidated balance sheet as of January 1, 2019, as we recognized $121.6 million of lease liabilities and $113.4 million of right-of-use ("ROU") assets for those leases classified as operating leases. Recently issued accounting pronouncements There are no recently issued accounting pronouncements that are expected to have a material impact on our financial position or results of operations when adopted in the future. Summary of significant accounting policies Revenue recognition Our revenue is primarily generated from the following sources: (i) charging for the use of our software solutions in cloud and hosted environments; (ii) providing payment and transaction services; (iii) providing software maintenance and support services; and (iv) providing professional services, including implementation, consulting, training, analytic and other services. Revenues are recognized when control of these services is transferred to our customers, in an amount that reflects the consideration we expect to be entitled to in exchange for those services. We determine revenue recognition through the following steps: • Identification of the contract, or contracts, with a customer; • Identification of the performance obligations in the contract; • Determination of the transaction price; • Allocation of the transaction price to the performance obligations in the contract; and • Recognition of revenue when, or as, we satisfy a performance obligation. Recurring Recurring revenue represents stand-ready performance obligations in which we are making our solutions or services available to our customers continuously over time or the value of the contract renews. Therefore, recurring revenue is generally recognized over time on a ratable basis over the contract term, beginning on the date that the solution or service is made available to the customer. Our recurring revenue contracts are generally for a term of 3 years at contract inception with 1 to 3 -year renewals thereafter, billed annually in advance and non-cancelable. Recurring revenue is comprised of fees for the use of our subscription-based software solutions, which includes providing access to cloud solutions, hosting services, online training programs, subscription-based analytic services, such as donor acquisitions and data enrichment, and payment services. Recurring revenue also includes fees from maintenance services for our on-premises solutions, services included in our renewable subscription contracts, subscription-based contracts for professional services and variable transaction revenue associated with the use of our solutions. Our payment services are offered with the assistance of third-party vendors. In general, when we are the principal in a transaction based on the factors identified in ASC 606-10-55-36 through 55-40, we record the revenue and related costs on a gross basis. Otherwise, we net the cost of revenue associated with the service against the gross revenue (amount billed to the customer) and record the net amount as revenue. For payment and transaction services, we have the right to invoice the customer in an amount that directly corresponds with the value to the customer of our performance to date. Therefore, we recognize revenue for these services over time based on the amount billable to the customer in accordance with the 'as invoiced' practical expedient in ASC 606-10-55-18. One-time services and other One-time services and other revenue primarily consists of fees for one-time consulting, analytic and onsite training services. We generally bill consulting services based on hourly rates plus reimbursable travel-related expenses. Fixed price consulting engagements are generally billed as milestones towards completion are reached. Revenue for all consulting services is recognized over time as the services are performed. We generally recognize analytic services revenue from donor prospect research engagements, the sale of lists of potential donors, data enrichment engagements and benchmarking studies at a point in time (upon delivery). In certain cases, we sell training at a fixed rate for each specific class at a per attendee price or at a packaged price for several attendees, and recognize the related revenue upon the customer attending and completing training. Contracts with multiple performance obligations Some of our contracts with customers contain multiple performance obligations. For these contracts, we account for individual performance obligations separately if they are distinct. The transaction price is allocated to the separate performance obligations on a relative standalone selling price basis. Standalone selling prices of our solutions and services are typically estimated based on observable transactions when the solutions or services are sold on a standalone basis. Costs of obtaining contracts, contract assets and deferred revenue We pay sales commissions at the time contracts with customers are signed or shortly thereafter, depending on the size and duration of the sales contract. Sales commissions and related fringe benefits earned by our sales force are considered incremental and recoverable costs of obtaining a contract with a customer. These costs are deferred and then amortized in a manner that aligns with the expected period of benefit, which we have determined to be 5 years . We determined the period of benefit by taking into consideration our customer contracts, including renewals, retention, our technology and other factors. We do not generally pay commissions for contract renewals. The related amortization expense is included in sales, marketing and customer success expense in our consolidated statements of comprehensive income. A contract asset is recorded when revenue is recognized in advance of our right to receive consideration (i.e., we must satisfy additional performance obligations in order to receive consideration). Amounts are recorded as receivables when our right to consideration is unconditional (i.e., only the passage of time is required before payment of the consideration is due). Our contract assets are recorded within prepaid expenses and other current assets on our consolidated balance sheets. To the extent that our customers are billed for our solutions and services in advance of us satisfying the related performance obligations, we record such amounts in deferred revenue. Fair value measurements We measure certain financial assets and liabilities at fair value on a recurring basis, including derivative instruments. Fair value is defined as the price that would be received to sell an asset or paid to transfer a liability (an exit price) in an orderly transaction between market participants at the measurement date. An active market is defined as a market in which transactions for the asset or liability take place with sufficient frequency and volume to provide pricing information on an ongoing basis. We use a three-tier fair value hierarchy to measure fair value. This hierarchy prioritizes the inputs into three broad levels as follows: • Level 1 - Quoted prices for identical assets or liabilities in active markets; • Level 2 - Quoted prices for similar assets and liabilities in active markets, quoted prices for identical or similar assets in markets that are not active, and model-derived valuations in which all significant inputs and significant value drivers are observable in active markets; and • Level 3 - Valuations derived from valuation techniques in which one or more significant inputs are unobservable. Our financial assets and liabilities are classified in their entirety within the hierarchy based on the lowest level of input that is significant to fair value measurement. Changes to a financial asset's or liability's level within the fair value hierarchy are determined as of the end of a reporting period. All methods of assessing fair value result in a general approximation of value, and such value may never actually be realized. Derivative instruments We generally use derivative instruments to manage interest rate risk. We view derivative instruments as risk management tools and do not use them for trading or speculative purposes. Our policy requires that derivatives used for hedging purposes be designated and effective as a hedge of the identified risk exposure at the inception of the contract. Accordingly, changes in fair value of the derivative contract must be highly correlated with changes in the fair value of the underlying hedged item at inception of the hedge and over the life of the hedge contract. We record all derivative instruments on our consolidated balance sheets at fair value. If the derivative is designated as a cash flow hedge, the effective portions of the changes in fair value of the derivative are recorded in other comprehensive income and reclassified to earnings in a manner that matches the timing of the earnings impact of the hedged transactions. Ineffective portions of the changes in the fair value of cash flow hedges are recognized currently in earnings. See Note 10 of these consolidated financial statements for further discussion of our derivative instruments. Sales taxes We present sales taxes and other taxes collected from customers and remitted to governmental authorities on a net basis and, as such, exclude them from revenues. Cash and cash equivalents We consider all highly liquid investments purchased with an original maturity of three months or less and cash items in transit to be cash equivalents. Restricted cash due to customers; Customer funds receivable; Due to customers Restricted cash due to customers consists of monies collected by us and payable to our customers, net of the associated transaction fees earned. Monies associated with amounts due to customers are segregated in separate bank accounts and used exclusively for the payment of amounts due to customers. This usage restriction is either legally or internally imposed and reflects our intention with regard to such deposits. Customer funds receivable consists of monies we expect to collect and remit to our customers. Concentration of credit risk Financial instruments that potentially subject us to concentrations of credit risk consist of cash and cash equivalents, restricted cash due to customers and accounts receivable. Our cash and cash equivalents and restricted cash due to customers are placed with high credit-quality financial institutions. Our accounts receivable is derived from sales to customers who primarily operate in the nonprofit sector. With respect to accounts receivable, we perform ongoing evaluations of our customers and maintain an allowance for doubtful accounts based on historical experience and our expectations of future credit losses. As of and for the years ended December 31, 2019 , 2018 and 2017 , there were no significant concentrations with respect to our consolidated revenues or accounts receivable. Property and equipment We record property and equipment assets at cost and depreciate them over their estimated useful lives using the straight-line method. Leasehold improvements are depreciated over the lesser of the term of the lease or the estimated useful life of the asset. Upon retirement or sale, the cost of assets disposed of and the related accumulated depreciation are removed from the accounts and any resulting gain or loss is credited or charged to earnings. Repair and maintenance costs are expensed as incurred. Construction-in-progress primarily related to purchases of facilities and information technology assets which had not been placed in service at the respective balance sheet dates. We transfer these assets to the applicable property and equipment category on the date they are placed in service. There was no capitalized interest applicable to construction-in-progress for the years ended December 31, 2019 , 2018 and 2017 . Business combinations We include the operating results of acquired companies as well as the net assets acquired and liabilities assumed in our consolidated financial statements from the date of acquisition. We are required to allocate the purchase price of acquired companies to the tangible and intangible assets acquired and liabilities assumed at the acquisition date based upon their estimated fair values. Goodwill as of the acquisition date represents the excess of the purchase consideration of an acquired business over the fair value of the underlying net tangible and intangible assets acquired and liabilities assumed. This allocation and valuation require management to make significant estimates and assumptions, especially with respect to long-lived and intangible assets. Critical estimates in valuing intangible assets include, but are not limited to, estimates about: expected future cash flows from customers, including revenue and operating expenses; royalty and customer attrition rates; proprietary technology obsolescence curve; the acquired company's brand awareness and market position, the market awareness of the acquired company's branded technology solutions and services; assumptions about the period of time the brand will continue to be valuable; as well as expected costs to develop any in-process research and development into commercially viable solutions and estimated cash flows from the projects when completed, and discount rates. Our estimates of fair value are based upon assumptions we believe to be reasonable, but which are inherently uncertain and unpredictable, and unanticipated events and changes in circumstances may occur. Goodwill Goodwill represents the purchase price in excess of the net amount assigned to assets acquired and liabilities assumed by us in a business combination. Goodwill is not amortized, but tested annually for impairment on the first day of our fourth quarter, or more frequently if indicators of potential impairment arise. Accounting guidance permits entities to first assess qualitative factors to determine whether it is more likely than not that the fair value of a reporting unit is less than its carrying amount as a basis to determine whether it is necessary to perform the quantitative impairment test. Significant judgment is required in the assessment of qualitative factors, including but not limited to an evaluation of macroeconomic conditions as they relate to our business, industry and market trends, as well as the overall future financial performance of identified reporting units and future opportunities in the markets in which we operate. The quantitative impairment test compares the fair values of identified reporting units with their respective carrying amounts. If the carrying amount of a reporting unit exceeds its fair value, an impairment loss is recognized in an amount equal to that excess. Based on our current internal reporting structure, we currently have one operating segment, one reportable segment, and one reporting unit. In each of 2019 , 2018 and 2017 , we performed the quantitative impairment test which indicated that the estimated fair values of the identified reporting units significantly exceeded their respective carrying values. There was no impairment of goodwill during 2019, 2018 or 2017. Intangible assets other than goodwill We amortize finite-lived intangible assets over their estimated useful lives as follows. Basis of amortization Amortization period (in years) Customer relationships Straight-line and accelerated (1) 8-17 Marketing assets Straight-line 2-1 5 Acquired software and technology Straight-line and accelerated (1) 5-14 Non-compete agreements Straight-line 1-5 (1) Certain of the customer relationships and acquired software and technology assets are amortized on an accelerated basis. We write off the gross carrying amount and accumulated amortization balances for all fully amortized intangible assets. We evaluate the estimated useful lives and the potential for impairment of finite and indefinite-lived intangible assets on an annual basis or more frequently if events or circumstances indicate revised estimates of useful lives may be appropriate or that the carrying amount may be impaired. If the carrying amount of a finite-lived intangible asset is no longer recoverable based upon the undiscounted cash flows of the asset, the amount of impairment is the difference between the carrying amount and the fair value of the asset. Substantially all of our intangible assets were acquired in business combinations. See Note 6 to these consolidated financial statements for a discussion of our impairment of certain acquired intangible assets during 2019. There was no impairment of acquired intangible assets during 2018 or 2017. Impairment of long-lived assets We review long-lived assets for impairment when events change or circumstances indicate the carrying amount may not be recoverable. Events or changes in circumstances that indicate the carrying amount may not be recoverable include, but are not limited to, a significant decrease in the market value of the business or asset acquired, a significant adverse change in the extent or manner in which the business or asset acquired is used or significant adverse change in the business climate. If such events or changes in circumstances are present, the undiscounted cash flow method is used to determine whether the asset is impaired. See Note 6 to these consolidated financial statements for a discussion of our impairment of certain long-lived assets during 2019. No impairment of long-lived assets occurred in 2018 or 2017 . Deferred financing costs Deferred financing costs included in other assets represent the direct third-party costs of entering into the revolving (line-of-credit) portion of our credit facility in June 2017 and portions of the unamortized deferred financing costs from prior facilities. These costs are amortized ratably over the term of the credit facility as interest expense. Stock-based compensation We measure stock-based compensation cost at the grant date based on the fair value of the award and recognize it as expense over the requisite service period, which is the vesting period. We determine the fair value of stock options and stock appreciation rights using a Black-Scholes option pricing model, which requires us to use significant judgment to make estimates regarding the life of the award, volatility of our stock price, the risk-free interest rate and the dividend yield of our stock over the life of the award. We determine the fair value of awards that contain market conditions using a Monte Carlo simulation model. Changes to these estimates would result in different fair values of awards. We recognize the effect of awards for which the requisite service period is not rendered when the award is forfeited (that is, we recognize the effect of forfeitures in compensation cost when they occur). Previously recognized compensation cost for an award is reversed in the period that the award is forfeited. Income tax benefits resulting from the vesting and exercise of stock-based compensation awards are recognized in the period the unit or award is vested or option or right is exercised. Income taxes We make estimates and judgments in accounting for income taxes. The calculation of the income tax provision requires estimates due to transactions, credits and calculations where the ultimate tax determination is uncertain. Uncertainties arise as a consequence of the actual source of taxable income between domestic and foreign locations, the outcome of tax audits and the ultimate utilization of tax credits. To the extent actual results differ from estimated amounts recorded, such differences will impact the income tax provision in the period in which the determination is made. We make estimates in determining tax assets and liabilities, which arise from differences in the timing of recognition of revenue and expense for tax and financial statement purposes. We record valuation allowances to reduce our deferred tax assets to the amount expected to be realized. In assessing the adequacy of a recorded valuation allowance significant judgment is required. We consider all positive and negative evidence and a variety of factors including the scheduled reversal of deferred tax liabilities, historical and projected future taxable income, and prudent and feasible tax planning strategies. If we determine there is less than a 50% likelihood that we will be able to use a deferred tax asset in the future in excess of its net carrying value, then an adjustment to the deferred tax asset valuation allowance is made to increase income tax expense, thereby reducing net income in the period such determination was made. We measure and recognize uncertain tax positions. To recognize such positions, we must first determine if it is more likely than not that the position will be sustained upon audit. We must then measure the benefit as the largest amount that is more than 50% likely of being realized upon ultimate settlement. Significant judgment is required in the identification and measurement of uncertain tax positions. Foreign currency Net assets recorded in a foreign currency are translated at the exchange rate on the balance sheet date. Revenue and expense items are translated using an average of monthly exchange rates. The resulting translation adjustments are recorded in accumulated other comprehensive income. Gains and losses resulting from foreign currency transactions denominated in currency other than the functional currency are recorded at the approximate rate of exchange at the transaction date in other income, net. For the year ended December 31, 2019 , we recorded a net foreign currency loss that was insignificant. For the year ended December 31, 2018 , we recorded a net foreign currency loss of $0.9 million . For the year ended December 31, 2017 , we recorded net foreign currency gain of $1.1 million . Research and development Research and development costs are expensed as incurred except as noted below under Software development costs . These costs include compensation costs for engineering and product management personnel, third-party contractor expenses, software development tools and other expenses related to researching and developing new solutions, upgrading and enhancing existing solutions, and allocated depreciation, facilities and IT support costs. Software development costs We incur certain costs associated with the development of internal-use software, which are primarily related to activities performed to develop our cloud solutions. Internal and external costs incurred in the preliminary project stage of internal-use software development are expensed as incurred. Once the software being developed has reached the application development stage, qualifying internal costs including payroll and payroll-related costs of employees who are directly associated with and devote time to the software project as well as external direct costs of materials and services are capitalized. Capitalization ceases at the point at which the developed software is substantially complete and ready for its intended use, which is typically upon completion of all substantial testing. Qualifying costs capitalized during the application development stage include those related to specific upgrades and enhancements when it is probable that those costs incurred will result in additional functionality. Overhead costs, including general and administrative costs, as well as maintenance, training and all other costs associated with post-implementation stage activities are expensed as incurred. In addition, internal costs that cannot be reasonably separated between maintenance and relatively minor upgrades and enhancements are expensed as incurred. Qualifying capitalized software development costs are amortized on a straight-line basis over the software asset's estimated useful life, which is generally 3 to 7 years . We evaluate the useful lives of these assets on an annual basis and test for impairment whenever events or changes in circumstances occur that could impact the recoverability of these assets. There were no impairment charges related to capitalized software development costs during the years ended December 31, 2019 , 2018 , and 2017 . We write off the gross carrying amount and accumulated amortization balances for all fully amortized software development cost assets. Sales returns and allowance for doubtful accounts We maintain a reserve for returns and credits which is estimated based on several factors including historical experience, known credits yet to be issued, the aging of customer accounts and the nature of service level commitments. A considerable amount of judgment is required in assessing these factors. Provisions for sales returns and credits are charged against the related revenue items. Accounts receivable are recorded at original invoice amounts less an allowance for doubtful accounts, an amount we estimate to be sufficient to provide adequate protection against losses resulting from extending credit to our customers. In judging the adequacy of the allowance for doubtful accounts, we consider multiple factors including historical bad debt experience, the general economic environment and the aging of our receivables. A considerable amount of judgment is required in assessing these factors and if any receivables were to deteriorate, an additional provision for doubtful accounts could be required. Accounts are written off after all means of collection are exhausted and recovery is considered remote. Provisions for doubtful accounts are recorded in general and administrative expense. Below is a summary of the changes in our allowance for sales returns. Years ended December 31, (in thousands) Balance at beginning of year Provision/ adjustment Write-off Balance at end of year 2019 $ 3,377 $ 6,232 $ (5,963 ) $ 3,646 2018 4,400 4,952 (5,975 ) 3,377 2017 2,704 10,511 (8,815 ) 4,400 Below is a summary of the changes in our allowance for doubtful accounts. Years ended December 31, (in thousands) Balance at beginning of year Provision/ adjustment Write-off Balance at end of year 2019 $ 1,345 $ 2,476 $ (1,938 ) $ 1,883 2018 741 2,446 (1,842 ) 1,345 2017 587 1,148 (994 ) 741 Advertising costs We expense advertising costs as incurred, which were $3.1 million , $4.0 million and $2.4 million for the years ended December 31, 2019 , 2018 and 2017 , respectively. Restructuring costs Restructuring costs include charges for the costs of exit or disposal activities. The liability for costs associated with exit or disposal activities is measured initially at fair value and only recognized when the liability is incurred. For details of our restructuring activities, see Note 19 of these consolidated financial statements. Leases We determine if an arrangement is a lease at inception. Operating leases are included in operating lease ROU assets, accrued expense and other current liabilities, and operating lease liabilities, net of current portion in our consolidated balance sheet as of December 31, 2019 . ROU assets represent our right to use an underlying asset for the lease term and lease liabilities represent our obligation to make lease payments arising from the lease. Operating lease ROU assets and liabilities are recognized at the lease commencement date based on the present value of lease payments over the lease term. As most of our leases do not provide an implicit rate, we generally use our incremental borrowing rate in determining the present value of lease payments. Our incremental borrowing rate is based on the estimated rate of interest for collateralized borrowing over a similar term of the lease payments at the commencement date. We use the implicit rate when readily determinable. The operating lease ROU asset also includes any initial direct costs and lease payments made and excludes lease incentives. Our lease terms may include options to extend or terminate the lease when it is reasonably certain that we will exercise that option. Lease expense for lease payments related to our operating leases is recognized on a straight-line basis over the lease term. We have lease agreements with lease and non-lease components, which are generally accounted for separately. We do not recognize short-term leases (those that, at the commencement date, have a lease term of 12 months or less) on our consolidated balance sheets. Variable lease payments, which are primarily comprised of common-area maintenance, utilities and real estate taxes that are passed on from the lessor in proportion to the space leased by us, are recognized in operating expenses in the period in which the obligation for those payments is incurred. Contingencies We are subject to the possibility of various loss contingencies in the normal course of business. We record an accrual for a contingency when it is both probable that a liability has been incurred and the amount of the loss can be reasonably estimated. Often these issues are subject to substantial uncertainties and, therefore, the probability of loss and the estimation of damages are difficult to ascertain. These assessments can involve a series of complex judgments about future events and can rely heavily on estimates and assumptions that have been deemed reasonable by us. Although we believe we have substantial defenses in these matters, we could incur judgments or enter into settlements of claims that could have a material adverse effect on our consolidated financial position, results of operations or cash flows in any particular period. Earnings per share We compute basic earnings per share by dividing net income available to common stockholders by the weighted average number of common shares outstanding during the period. Diluted earnings per share is computed by dividing net income available to common stockholders by the weighted average number of common shares and dilutive potential common shares outstanding during the period. Diluted earnings per share reflect the assumed exercise, settlement and vesting of all dilutive securities using |