Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Basis of Presentation The consolidated financial statements and accompanying notes were prepared in accordance with accounting principles generally accepted in the United States of America (“U.S. GAAP”). Reclassification The Company reclassified certain prior year amounts to conform to the current year presentation. These reclassifications had no impact on the previously reported total assets, liabilities, stockholder’s deficit or net income. Principles of Consolidation The consolidated financial statements include the accounts of Bandwidth Inc. and its wholly owned subsidiaries. All intercompany accounts and transactions have been eliminated in consolidation. Use of Estimates The preparation of the Company’s consolidated financial statements in conformity with GAAP requires the Company to make estimates and judgments that affect the amounts reported in these financial statements and accompanying notes. These estimates in the consolidated financial statements include, but are not limited to, allowance for doubtful accounts, reserve for expected credit losses, reserve for sales credits, recoverability of long lived and intangible assets, fair value of acquired intangible assets and goodwill, discount rates used in the valuation of right-of-use assets and lease liabilities, the fair value of the liability and equity components of the Company’s Convertible Notes (as defined herein), estimated period of benefit, valuation allowances on deferred tax assets, certain accrued expenses and contingencies, economic and demographic actuarial assumptions related to pension and other postretirement benefit costs and liabilities, estimated cash flows on asset retirement obligation. Although the Company believes that the estimates it uses are reasonable, due to the inherent uncertainty involved in making these estimates, actual results reported in future periods could differ from those estimates. Effective January 1, 2020, due to the continued growth in customers and low churn rates, the Company updated its calculation of the estimated period of benefit for nonrefundable upfront fees from 3 to 4 years. Effective July 1, 2020, due to significant investment in software during the first half of 2020 and management's expectation that such investment would yield benefit for a longer period of time, the Company updated its estimated useful life for internal-use software development from 3 to 4 years. Revenue Recognition Revenue recognition commences upon transfer of control of promised goods or services to customers in an amount that the Company expects to receive in exchange for those products or services. The Company determines 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, the Company satisfies a performance obligation. Nature of Products and Services Revenue consists primarily of the sale of communications services offered through Application Programming Interface (“API”) software solutions to large enterprise, as well as small and medium-sized business, customers and is generally derived from usage and service fees in both the CPaaS and Other segments. Usage revenue includes voice communication (primarily driven by inbound minutes, outbound minutes and toll-free minutes) and messaging communication (driven by the number of messages) that traverse the platform and network. Service fees include the provision and management of phone numbers and emergency services access. The majority of the Company’s revenue is generated from usage-based fees earned from customers accessing the Company’s communications platform. Access to the Company’s communication platform is considered a series of distinct services, with continuous transfer of control to the customer, comprising one performance obligation and usage-based fees are recognized in revenue in the period the traffic traverses the Company’s network. For the years ended December 31, 2019, 2020 and 2021 the revenue from usage-based fees represented $131.6 million, $219.8 million and $319.0 million of CPaaS revenue, respectively, and $29.0 million, $40.8 million and $73.5 million of Other revenue, respectively. Revenue from service fees is recognized on a ratable basis as the service is provided, which is typically one month. For the years ended December 31, 2019, 2020 and 2021 the revenue from service fees represented $61.2 million, $72.3 million and $87.6 million of CPaaS revenue, respectively, and $5.6 million, $4.2 million and $3.5 million of Other revenue, respectively. The remaining $5.1 million, $6.0 million and $7.3 million of CPaaS revenue for the years ended December 31, 2019, 2020 and 2021, respectively, are generated from other miscellaneous services. Infrequently, Bandwidth’s contracts with customers may include multiple performance obligations. For such arrangements, revenues are allocated to each performance obligation based on its relative standalone selling price. Generally, standalone selling prices are determined based on the prices charged to similar customers for similar services. When required as part of providing service, revenues and associated expenses related to nonrefundable, upfront service activation and setup fees are deferred and recognized over the longer of the associated service contract period or estimated customer life. The Company’s contracts do not contain general rights of return. However, occasionally credits may be issued. The Company’s contracts do not provide customers with the right to take possession of the software supporting the applications. Amounts that have been invoiced are recorded in accounts receivable and in revenue or deferred revenue depending on whether the revenue recognition criteria have been met. The Company maintains a reserve for sales credits. Credits are accounted for as variable consideration and are estimated based on several inputs including historical experience and current trends of credit issuances. Adjustments to the reserve are recorded against revenue. The Company has various sales commission plans for which eligible employees can earn commissions from the sale of products and services to customers. Eligible employees must be employed at the time of payment in order to receive a commission. The Company pays commissions over time and a corresponding requisite substantive service condition exists for the employee to receive the commission. The Company determined that the timing of the commission payments and the underlying service performed by the employee were commensurate. Accordingly, sales commissions are generally expensed as incurred. These costs are recorded within sales and marketing expenses. Contract Assets and Liabilities The following table provides information about receivables and contract liabilities from contracts with customers: As of December 31, 2020 2021 (In thousands) Receivables (1) $ 55,243 $ 61,572 Contract liabilities (2) 12,901 13,882 ________________________ (1) Included in accounts receivable, net of allowance for doubtful accounts on the consolidated balance sheet. (2) Included in current portion of deferred revenue and deferred revenue, net of current portion on the consolidated balance sheet. Deferred revenue is recorded when cash payments are received in advance of future usage on contracts. Revenue is typically recognized in the following month when service is rendered or, in the case of nonrefundable upfront fees, over the estimated period of benefit from the date the fee is incurred by the customer. Customer refundable payments are recorded as advanced billings. During the year ended December 31, 2021, the Company recognized revenue of $5.7 million related to contract liabilities recorded at the beginning of the year. The Company expects to recognize $6.2 million in revenue over the next 12 months related to its contract liabilities as of December 31, 2021. Cost of Revenue CPaaS cost of revenue consists primarily of fees paid to other network service providers from whom the Company buys services such as minutes of use, phone numbers, messages, porting of customer numbers, and network circuits. Cost of revenue also contains costs related to the support of the network, web services and cloud infrastructure, capacity planning and management, rent for network facilities, software licenses, hardware and software maintenance fees, and network engineering services. Personnel costs (including non-cash stock-based compensation expenses) associated with personnel who are responsible for the delivery of services, operation and maintenance of the communications network, customer support, as well as, third party support agreements, and depreciation and amortization of acquired technology intangibles are also recorded as cost of revenue. Other cost of revenue consists of amortization of capital software development costs related to platform applications supporting non-CPaaS services including circuit costs paid to third party providers, internet connectivity expenses, minutes of use, contractors, regulatory fees and surcharges, depreciation, and software and hardware maintenance fees. Operating Expenses Research and Development Research and development expenses consist primarily of personnel costs (including non-cash stock-based compensation expenses), outsourced software development and engineering services and cloud infrastructure fees for staging and development outsourced engineering services. Sales and Marketing Sales and marketing expenses consist primarily of personnel costs, including commissions for sales employees and non-cash stock-based compensation expenses. Sales and marketing expenses also include expenditures related to advertising, marketing, brand awareness activities, sales support and professional services fees. General and Administrative General and administrative expenses consist primarily of personnel costs for support personnel and executives in accounting, finance, legal, information services, human resources and administrative functions. General and administrative expenses also include costs related to product management and reporting, data services, customer billing and collection functions, and other professional services fees, credit card processing fees, rent associated with the Company’s headquarters in Raleigh, North Carolina and its offices worldwide, depreciation and amortization. Cash and Cash Equivalents The Company classifies all highly liquid investments with original stated maturities of three months or less from the date of purchase as cash equivalents. All highly liquid investments with original stated maturities of greater than three months from the date of purchase are classified as current marketable securities, with the exception of time deposits with maturities greater than ninety days which are classified as other investments. Cash deposits are primarily in financial institutions in the United States. However, cash for monthly operating costs of international operations are deposited in banks outside the United States. The Company has a policy of making investments only with commercial institutions that have at least an investment grade credit rating. The Company utilizes money market funds as an investment option and only invests in AAA rated funds. Restricted Cash Restricted cash consists primarily of employee withholding tax liability and employee benefits contributions not yet remitted. The Company has classified this asset as a short-term asset in order to match the expected period of restriction. Accounts Receivable and Current Expected Credit Losses Accounts receivable are stated at realizable value, net of allowances, which includes an allowance for doubtful accounts and a reserve for expected credit losses. The allowance for doubtful accounts is based on management’s assessment of the collectability of its customer accounts. The Company regularly reviews the composition of the accounts receivable aging, historical bad debts, changes in payment patterns, customer creditworthiness, current economic trends, and reasonable and supportable forecasts about the future. Relevant risk characteristics include customer size and historical loss patterns. Management has evaluated the expected credit losses related to trade accounts receivable and determined that allowances of approximately $1.2 million and $1.7 million for uncollectible accounts and customer balances that are disputed were required as of December 31, 2020 and December 31, 2021, respectively. Refer to Note 5, “Financial Statement Components” to these consolidated financial statements, for a rollforward of the components of the allowances as of December 31, 2020 and December 31, 2021. The Company includes unbilled receivables in its accounts receivable balance. Generally, these receivables represent earned revenue from services provided to customers, which will be billed in the next billing cycle. All amounts are considered collectible and billable. As of December 31, 2020 and December 31, 2021, unbilled receivables were $27.7 million and $31.8 million, respectively. Concentration of Credit Risk Financial instruments that are exposed to concentration of credit risk consist primarily of cash and cash equivalents, other investments and trade accounts receivable. Cash deposits may be in excess of insured limits. The Company believes that the financial institutions that hold its cash deposits are financially sound and, accordingly, minimal credit risk exists with respect to these balances. With regard to customers, credit evaluation and account monitoring procedures are used to minimize the risk of loss. The Company believes that no additional credit risk beyond amounts provided for by the allowance for doubtful accounts are inherent in accounts receivable. As of December 31, 2020 and December 31, 2021, one individual customer represented approximately 11% and 10%, respectively, of the Company’s accounts receivable, net of allowance for doubtful accounts. For the years ended December 31, 2019, 2020 and 2021, no individual customer represented more than 10% of the Company’s revenue. Property and Equipment, net Property and equipment, net is stated at cost, less accumulated depreciation and amortization. Depreciation and amortization is calculated on a straight-line basis over the estimated useful lives of those assets as follows: Computer hardware and software 1 to 7 years Internal-use software development costs 4 to 7 years Furniture and fixtures 2 to 5 years Leasehold improvements Shorter of the estimated lease term or 4 to 7 years Maintenance and repairs are charged to expense as incurred. Deferred Costs The Company defers certain direct and incremental upfront costs related to the generation of a revenue stream or obtaining a new customer agreement. These costs include installment fees, activation and other telecommunication fees. The Company capitalizes these costs and amortizes them over the longer of the term of the customer contract or the estimated period of benefit, which is approximately four years. Internal-Use Software Development Costs Internal-use software includes software that has been acquired, internally developed, or modified exclusively to meet the Company’s needs. The Company capitalizes qualifying internal-use software development costs that are incurred during the application development stage. Capitalization of costs begins when two criteria are met: (i) the preliminary project stage is completed, and (ii) it is probable that the software will be completed and used for its intended function. Capitalization ceases when the software is substantially complete and ready for its intended use, including the completion of all significant testing. The Company also capitalizes costs related to specific upgrades and enhancements when the expenditures will result in additional functionality, and expenses costs incurred for maintenance and minor upgrades and enhancements. Costs related to preliminary project activities and post-implementation operating activities are expensed as incurred. Capitalized costs of platform and other software applications are included in property and equipment. These costs are amortized over the estimated useful life of the software on a straight-line basis over four Debt Issuance Costs The Company incurs debt issuance costs associated with obtaining and entering into credit agreements and issuing convertible notes. These costs customarily include non-refundable structuring fees, commitment fees, up-front fees and syndication expenses. The Company has a policy of deferring and amortizing these costs based on the effective interest method over the term of the credit agreements or the convertible notes, as applicable. Amortization of Intangibles Intangible assets determinable economic lives are carried at cost, less accumulated amortization. Amortization is computed over the estimated useful life of each asset on a straight-line basis. The Company determines the useful lives of identifiable intangible assets after considering the specific facts and circumstances related to each intangible asset. Factors the Company considers when determining useful lives include the contractual term of any agreement related to the asset, the historical performance of the asset, the Company's long-term strategy for using the asset, any laws or other local regulations which could impact the useful life of the asset and other economic factors, including competition and specific market conditions. Intangible assets without determinable economic lives are carried at cost, not amortized and reviewed for impairment at least annually. Refer to Note 8, “Goodwill and Intangible Assets” to these consolidated financial statements, for the useful lives of the Company's intangible assets as of December 31, 2020 and December 31, 2021. Goodwill The Company reviews goodwill and indefinite-lived intangible assets at least annually, as of December 31, for possible impairment. Goodwill and indefinite-lived intangible assets are reviewed for possible impairment at an interim date if an event occurs or circumstances change that would more likely than not reduce the fair value of the reporting unit or indefinite-lived intangible asset below its carrying value. The Company tests goodwill at the reporting unit level and has determined that it has 2-reporting units, CPaaS and Other. All Goodwill is allocated to the CPaaS reporting unit. Management may first evaluate qualitative factors to assess if it is more likely than not that the fair value of a reporting unit is less than its carrying amount and to determine if a two-step impairment test is necessary. Management may choose to proceed directly to the two-step evaluation, bypassing the initial qualitative assessment. The first step of the impairment test involves comparing the fair value of the reporting unit to its net book value, including goodwill. If the carrying value exceeds its fair value, then the Company would perform the second step of the goodwill impairment test to determine the amount of the impairment loss. The impairment loss would be calculated by comparing the implied fair value of the goodwill to its carrying value. In calculating the implied fair value of goodwill, the fair value of the entity would be allocated to all of the other assets and liabilities based on their fair values. The excess of the fair value of the entity over the amount assigned to other assets and liabilities is the implied fair value of goodwill. An impairment loss would be recognized when the carrying amount of goodwill exceeds its implied fair value. The Company makes assumptions regarding estimated future cash flows, discount rates, long-term growth rates and market values to determine each reporting unit’s and indefinite-lived intangible asset’s estimated fair value. If these estimates or related assumptions change in the future, the Company may be required to record an impairment charge. As of December 31, 2020 and 2021, the Company has recorded goodwill of $372.2 million and $344.4 million, respectively. No goodwill impairment charges were recorded for the years ended December 31, 2019, 2020 and 2021. Impairment of Long-Lived Assets The Company evaluates long-lived assets, including property and equipment and definite lived intangible assets, for impairment whenever events or changes in circumstances indicate that the carrying amount of an asset may not be recoverable. Recoverability of assets held and used is measured by a comparison of the carrying amount of an asset or an asset group to estimated undiscounted future net cash flows expected to be generated by the asset or asset group. If such evaluation indicates that the carrying amount of the asset or the asset group is not recoverable, any impairment loss would be equal to the amount the carrying value exceeds the fair value. Business Combinations The Company uses the acquisition method of accounting for business combinations which requires the tangible and intangible assets acquired and liabilities assumed to be recorded at their respective fair market value as of the acquisition date. Goodwill represents the excess of the consideration transferred over the fair value of the net assets acquired. The fair values of the assets acquired and liabilities assumed are determined based upon the Company’s valuation and involves making significant estimates and assumptions based on facts and circumstances that existed as of the acquisition date. The Company uses a measurement period following the acquisition date to gather information that existed as of the acquisition date that is needed to determine the fair value of the assets acquired and liabilities assumed. The measurement period ends once all information is obtained, but no later than one year from the acquisition date. Advertising Costs The Company expenses advertising costs as incurred. Advertising costs totaled $1.5 million, $1.6 million and $1.8 million for the years ended December 31, 2019, 2020 and 2021, respectively, which are included in sales and marketing expenses in the accompanying consolidated statements of operations. Commissions Commissions consist of variable compensation earned by sales personnel and third-party resellers. Sales commissions associated with the acquisition of a new customer contract are paid over time, based on monthly revenues, and are recognized as sales and marketing expense in the period incurred. Stock-Based Compensation The Company accounts for stock-based compensation expense related to all stock-based awards based on the fair value of the award on the grant date. Stock-based compensation expense is recognized on a straight-line basis over the requisite service period, which is generally four years. The fair value of the restricted stock units is determined using the fair value of the Company’s Class A common stock on the date of grant. The Company uses the Black-Scholes option pricing model, net of estimated forfeitures, to measure the fair value of its stock options. The Company has elected to estimate expected forfeitures, and, as such, the Company must also determine a forfeiture rate to calculate the stock-based compensation for awards. Through December 31, 2021, the Company recognized compensation for only the portion of options expected to vest using an estimated forfeiture rate that was derived from historical employee termination behavior. If any of the assumptions used in the Black-Scholes option pricing model change, stock-based compensation for future options may differ materially compared to that associated with previous grants. Income Taxes The Company accounts for income taxes under the asset and liability method. Under this method, deferred tax assets and liabilities are determined based on temporary differences between the financial statement and tax basis of assets and liabilities using enacted tax rates. The Company recognizes the effect of a change in tax rates on deferred tax assets and liabilities in the period that includes the enactment date. The Company reduces the measurement of a deferred tax asset, if necessary, by a valuation allowance if it is more likely than not that it will not realize some or all the deferred tax asset. Quarterly, the Company reviews the deferred tax assets for recoverability based on historical taxable income, projected future taxable income, the expected timing of the reversals of existing temporary differences and the implementation of prudent and feasible tax planning strategies. The evaluation of the recoverability of deferred tax assets requires judgment in assessing future profitability. Should there be a change in the ability to recover deferred tax assets, the Company’s income tax provision would increase or decrease in the period in which the assessment is changed. The Company accounts for uncertain tax positions by recognizing the financial statement effects of a tax position only when, based upon technical merits, it is more likely than not that the position will be sustained upon examination. The tax benefit recognized is measured as the largest amount of benefit determined on a cumulative probability basis that the Company believes is more likely than not to be realized upon ultimate settlement of the position. The Company recognizes potential accrued interest and penalties associated with unrecognized tax positions in income tax expense. Operating Segments Operating segments are defined as components of an enterprise for which separate financial information is available and evaluated regularly by the chief operating decision maker (“CODM”) in deciding how to make operating decisions, allocate resources and in assessing performance. The Company has two operating segments, CPaaS and Other, which are deemed to be reportable segments. The Company’s CODM is its Chief Executive Officer. The CODM evaluates the performance of the Company’s operating segments primarily based on revenue and gross profit. The Company does not analyze discrete segment balance sheet information related to long-term assets. All other financial information is evaluated on a consolidated basis. Earnings per Share Basic earnings per share attributable to common stockholders is calculated by dividing the net income attributable to common stockholders by the weighted-average number of shares of common stock outstanding for the period. Diluted net income per share is calculated by giving effect to all potentially dilutive common stock when determining the weighted-average number of common shares outstanding. For purposes of the diluted net income (loss) per share calculation, options to purchase common stock, restricted stock units and redeemable convertible preferred stock are considered to be potential common stock. Foreign currency translation The Company has foreign operations with non-USD functional currencies. The Euro and British Pound are the primary functional currencies for the Company’s international operations. All of the assets and liabilities of these subsidiaries are converted to U.S. dollars at the exchange rate in effect at the balance sheet date, and equity accounts are carried at historical exchange rates. Revenue and expenses are translated at average exchange rates in effect during each reporting period . The net effect of foreign currency translation adjustments is included in shareholder’s equity as a component of “ Accumulated other comprehensive loss ” line item in the accompanying consolidated balance sheets. Foreign currency transaction gains and losses are the result of exchange rate changes during the period of time between the consummation and cash settlement of transactions denominated in currencies other than the functional currency. Foreign currency transaction gains and losses are recognized in current period earnings as incurred. Foreign exchange gains and losses, which result from the process of remeasuring foreign currency transactions into the appropriate functional currency, are included in other income (expense), net in the Company’s consolidated statements of operations. The Company recorded less than $0.1 million in related gains and losses during each of the years ended December 31, 2019, 2020 and 2021. Fair Value of Financial Instruments The Company minimizes its credit risk associated with investments by investing primarily in investment grade, liquid securities. The Company policy is designed to preserve capital, maintain liquidity and minimize credit risk, and the policy limits exposure to any one issuer and also establishes minimum credit ratings of approved investments. Periodic evaluations of relative credit standing of those issuers are considered in the Company's investment strategy. The Company uses a three-tier fair value hierarchy to classify and disclose all assets and liabilities measured at fair value on a recurring basis, as well as assets and liabilities measured at fair value on a non-recurring basis, in periods subsequent to their initial measurement. The hierarchy requires use of observable inputs when available, and to minimize the use of unobservable inputs when determining fair value. The three tiers are defined as follows: • Level 1. Observable inputs based on unadjusted quoted prices in active markets for identical assets or liabilities; • Level 2. Inputs, other than quoted prices in active markets, that are observable either directly or indirectly; and • Level 3. Unobservable inputs for which there is little or no market data, which requires the Company to develop its own assumptions. A financial instrument’s categorization within the valuation hierarchy is based upon the lowest level of input that is significant to the fair value measurement. Comprehensive Income (Loss) The Company has elected to present Comprehensive Income (Loss) and its components as a separate financial statement. Comprehensive income refers to net income and other revenue, expenses, gains and losses that, under generally accepted accounting principles, are recorded as an element of stockholders’ equity but are excluded from the calculation of net income. Recently Adopted Accounting Standards In December 2019, the Financial Accounting Standards Board (“FASB”) issued Accounting Standards Update (“ASU”) 2019-12, Income Taxes (Topic 740): Simplifying the Accounting for Income Taxes , which is intended to simplify various aspects related to accounting for income taxes. ASU 2019-12 removes certain exceptions to the general principles in Topic 740 and also clarifies and amends existing guidance to improve consistent application. ASU 2019-12 is effective for fiscal years, and interim periods within those fiscal years, beginning after December 15, 2020. The Company adopted this standard on January 1, 2021 on a prospective basis, which did not have a material impact on the Company’s financial statements. Recent Accounting Pronouncements Not Yet Adopted In May 2021, the FASB issued ASU 2021-04, Earnings Per Share (Topic 260), Debt —Modifications and Extinguishments (Subtopic 470-50), Compensation--Stock Compensation (Topic 718), and Derivatives and Hedging--Contracts in Entity's Own Equity (Subtopic 815-40) , which is intended to provide clarity surrounding the treatment for a modification or an exchange of a freestanding equity-classified written call option. The amendments also provide guidance for the recognition and measurement of earnings-per-share (“EPS”) for certain modifications or exchanges of freestanding equity-classified written call options for entities that present EPS. The amendments do not affect a holder’s accounting for freestanding call options. ASU 2021-04 is effective for fiscal years beginning after December 15, 2021, including interim periods within those fiscal years. Early adoption is permitted, including adoption in an interim period. The Company did not and does not expect to have any modification or exchanges of freestanding written call options classified in equity during the reporting period and therefore does not expect adoption will have a material impact on its financial statements. In August 2020, the FASB issued ASU 2020-06, Debt - Debt with Conversion and Other Options (Subtopic 470-20) and Derivatives and Hedging - Contracts in Entity's Own Equity (Subtopic 815-40) , which is intended to address issues identified as a result of the complexity associated with applying GAAP for certain fina |