Basis of Presentation and Summary of Significant Accounting Policies | 1. Basis of Presentation and Summary of Significant Accounting Policies Business Description WEX Inc. (“Company”, “we” or “our”) is the global commerce platform that simplifies the business of running a business. We operate in three reportable segments: Fleet Solutions, Travel and Corporate Solutions, and Health and Employee Benefit Solutions, which are described in more detail in Note 24, Segment Information. The Company was founded in 1983, and trades on the NYSE under the ticker WEX. Basis of Presentation and Use of Estimates and Assumptions The accompanying consolidated financial statements for the years ended December 31, 2022, 2021 and 2020, include the accounts of the Company and its wholly and majority-owned subsidiaries. All intercompany accounts and transactions have been eliminated in consolidation. The Company prepares its consolidated financial statements in conformity with GAAP and with the Rules and Regulations of the SEC, specifically Regulation S – X and the instructions to Form 10 – K. These principles require management to make estimates and assumptions that affect the reported amounts of assets and liabilities and the disclosures of contingent assets and liabilities as of the date of the financial statements and the reported amounts of revenue and expenses during the period. Actual results could differ from those estimates and those differences may be material. The Company rounds amounts in the consolidated financial statements to thousands within tables and millions within text (unless otherwise specified), and calculates all percentages and per-share data from underlying whole-dollar amounts. Thus, certain amounts may not foot, crossfoot, or recalculate based on reported numbers due to rounding. Reclassifications Effective December 31, 2022, accrued expenses and other current liabilities have been combined and presented as one line item in the consolidated balance sheets. In conjunction with this revised balance sheet presentation, accrued expenses have been combined with other current and other long-term liabilities on the consolidated statements of cash flows and restricted cash payable has been presented separately. Prior period amounts on the consolidated balance sheet and cash flow statement have been reclassified to conform with the current period presentation. The change in restricted cash payable, which had previously been presented within cash flows from operating activities in the statements of cash flows, has been reclassified to cash flows from financing activities on the consolidated statements of cash flows. Restricted cash payable inflows of $193.0 million and $120.2 million for the years ended December 31, 2021 and 2020, respectively, have been reclassified to conform to the current period presentation. Significant Accounting Policies Cash and Cash Equivalents Highly liquid investments with original maturities at the time of purchase of three months or less (that are readily convertible to cash) are considered to be cash equivalents and are stated at cost, which approximates fair value. Cash and cash equivalents include Eurodollar time deposits and money market funds, which are unsecured short-term investments entered into with financial institutions. Restricted Cash Restricted cash represents funds collected from individuals or employers on behalf of our customers that are to be remitted to third parties, funds required to be maintained under certain vendor agreements, and amounts received from OTAs held in segregated accounts until a transaction is settled. Restricted cash is not available to fund the Company’s operations. We generally maintain an offsetting liability against the restricted cash. Accounts Receivable, Net of Allowances Accounts receivable consists of amounts billed to and due from customers across a wide range of industries and other third parties. The Company often extends short-term credit to cardholders and pays the merchant or payment network, as applicable, for the purchase price, less the fees it retains and records as revenue. The Company subsequently collects the total purchase price from the cardholder. In general, the Company’s trade receivables provide for payment terms of 30 days or less. Receivables not paid in full by payment due dates, as stated within the terms of the agreement, are generally considered past due and subject to late fees and interest based upon the outstanding receivables balance. The Company discontinues late fee and interest income accruals on outstanding receivables once customers are 90 and 120 days past the invoice due date, respectively. Payments received subsequent to discontinuing late fee and interest income accruals are first applied to outstanding late fees and interest, and the Company resumes accruing interest and late fee income as earned on future receivables balances. Receivables are generally written off when they are 180 days past invoice origination date or upon declaration of bankruptcy of the customer, subject to local regulatory restrictions. The Company extends revolving credit to certain small fleets. These accounts are also subject to late fees and balances that are not paid in full are subject to interest charges based on the revolving balance. The Company had approximately $157.8 million and $93.7 million in receivables with revolving credit balances as of December 31, 2022 and 2021, respectively. Allowance for Accounts Receivable The allowance for accounts receivable reflects management’s current estimate of uncollectible balances on its accounts receivable and consists primarily of reserves for credit losses. The reserve for credit losses reduces the Company’s accounts receivable balances, as reported in the consolidated financial statements, to the net realizable value. The reserve for expected credit losses includes both a quantitative and qualitative reserve component. The quantitative component is primarily calculated using an analytic model, which includes the consideration of historical loss experience and past events to calculate actual loss-rates at the portfolio level. It also includes reserves against specific customer account balances determined to be at risk for non-collection based on customer information including delinquency, changes in payment patterns and other information. The qualitative component is determined through analyzing recent trends in economic indicators and other current and forecasted information to determine whether loss-rates are expected to change significantly in comparison to historical loss-rates at the portfolio level. When such indicators are forecasted to deviate from the current or historical median, the Company qualitatively assesses what impact, if any, the trends are expected to have on the reserve for credit losses. Economic indicators include consumer price indices, consumer spending and unemployment trends, among others. See Note 6, Allowance for Accounts Receivable for changes in the accounts receivable allowances by portfolio segment during the years ended December 31, 2022 and 2021 as a result of these assessments. Accounts receivable are evaluated for credit losses on a pooling basis based on similar risk characteristics including industry of the borrower, historical or expected credit loss patterns, risk ratings or classification, and geographic location. As a result of this evaluation, our portfolio segments consist of the following: • Fleet Solutions - The majority of the customer base consists of companies within the transportation, logistics and fleet industries. The associated credit losses by customer are generally low, however, the Fleet Solutions segment has historically comprised the majority of the Company’s provision for credit loss. Credit losses generally correlate with changes in consumer price indices and other indices that measure trends and volatility including the Institute of Supply Management Purchasing Index and the U.S. Volatility Index. • Travel and Corporate Solutions - The customer base is comprised of businesses operating in multiple industries including large OTAs. With the exception of the eNett and WEX Payments portfolios, which have minimal credit risk due to their respective business models and collection terms, the associated credit losses are sporadic and closely correlate with trends in consumer metrics, including consumer spending and the consumer price index. • Health and Employee Benefit Solutions - The customer base includes third-party administrators, individual employers and employees. The associated credit losses are generally low. When accounts receivable exhibit elevated credit risk characteristics as a result of bankruptcies, disputes, conversations with customers, or other significant credit loss events, they are assessed account level credit loss estimates. Assumptions regarding expected credit losses are reviewed each reporting period and may be impacted by actual performance of accounts receivable and changes in any of the factors discussed above. The allowance for accounts receivable also includes reserves for waived finance fees, which are used to maintain customer goodwill and recorded against the late fee revenue recognized, as well as reserves for fraud losses, which are recorded as credit losses. The reserve for fraud losses is determined by monitoring pending fraud cases, customer-identified fraudulent activity, known and suspected fraudulent activity identified by the Company, as well as unconfirmed suspicious activity in order to make judgments as to probable fraud losses. Off-Balance Sheet Arrangements The Company has various off-balance sheet commitments, including the extension of credit to customers, accounts receivable factoring and accounts receivable securitization, which carry credit risk exposure. Such arrangements are described in Note 20, Commitments and Contingencies, and Note 13, Off-Balance Sheet Arrangements. Investment Securities Investment securities held by the Company consist primarily of (i) custodial assets managed and invested by WEX Bank through an investment manager, which are reflected within current assets on our consolidated balance sheets and (ii) securities purchased and held by WEX Bank primarily in order to meet the requirements of the Community Reinvestment Act, which are reflected within non-current assets on our consolidated balance sheets. Investment securities consist primarily of available-for-sale debt securities, including U.S. treasury notes and bonds, corporate debt securities and asset or mortgage-backed securities, and equity securities with readily determinable fair values. Available-for-sale debt securities and equity securities with a readily determinable fair value are reflected in the consolidated balance sheets at fair value and are classified as current or long-term based on Management’s determination of whether such securities are available for use in current operations, regardless of the securities’ stated maturity dates. The cost basis of investment securities is based on the specific identification method. Purchases and sales of securities are recorded on a trade date basis. Accrued interest on investment securities is recorded within prepaid expenses and other current assets on the consolidated balance sheets. As of December 31, 2022 and 2021, accrued interest on investment securities was $9.3 million and $4.2 million, respectively. Available-for-sale debt securities are considered impaired if the fair value of the investment is less than its amortized cost. If it is more likely than not that the Company will have to sell the security before recovery of its amortized cost basis, the security is written down to its fair value and the difference is recognized in operating income. If the Company deems it is not likely to sell such security before recovery of its amortized cost basis, the Company bifurcates the impairment into credit-related and non-credit-related components. In evaluating whether a credit-related loss exists, the Company considers a variety of factors including: the extent to which the fair value is less than the amortized cost basis; adverse conditions specifically related to the issuer of a security; the failure of the issuer of the security to make scheduled interest or principal payments; and any changes to the rating of the security by a rating agency. A loss on available-for-sale securities attributed to a credit-related component is determined by comparing the present value of cash flows expected to be collected from the security with the amortized cost basis of the security and is recorded within the provision for credit losses on our consolidated statements of operations. To the extent this expected credit loss decreases in future periods, the charge to the provision for credit losses is reversed. The portion of the loss attributed to non-credit-related components is reflected within accumulated other comprehensive loss on the consolidated balance sheets, net of applicable taxes. To the extent this loss decreases in future periods, the Company records a reduction to accumulated other comprehensive loss, net of applicable taxes. Realized gains and losses on available-for sale debt securities are recorded within other revenue on the consolidated statements of operations. Unrealized holding gains and losses on equity securities are included in net unrealized (loss) gain on financial instruments within the consolidated statements of operations. Other Investments During the fourth quarter of 2022, the Company entered into an agreement for future equity in a privately-held entity upon the occurrence of a future qualified equity financing. While this investment does not represent a current ownership interest, we have determined this to be an investment without a readily determinable fair value. Investments without a readily determinable fair value are measured at cost minus impairments, if any, until a specific remeasurement event occurs. At December 31, 2022, we had $2.5 million of investments without a readily determinable fair value, which have been included within prepaid expenses and other current assets on our consolidated balance sheet. Derivatives From time to time, the Company utilizes derivative instruments as part of its overall strategy, including to reduce the impact of interest rate volatility. In addition, we have a contingent consideration derivative liability associated with our asset acquisition from Bell Bank. The Company’s derivative instruments outstanding at December 31, 2022 and 2021, which consist of interest rate swap agreements that have not been designated as hedges and the contingent consideration liability, are recorded at fair value on the consolidated balance sheets. Realized gains and losses on interest rate swap derivatives are recognized in financing interest expense and unrealized gains and losses on the interest rate swap derivatives are recognized in net unrealized gains and losses on financial instruments. The change in the estimated fair value of the contingent consideration liability is recognized separately on the consolidated statement of operations. For the purposes of cash flow presentation, realized gains or losses on the interest rate swaps are included within cash flows from operating activities. Cash payments for contingent consideration will be included within cash flows from financing activities, up to the initial liability balance at acquisition. Any contingent consideration paid in excess of the initial liability balance will be included within cash flows from operating activities. Leases The Company's real estate leases are accounted for using a right-of-use model, which recognizes that at the date of commencement, a lessee has a financial obligation to make lease payments to the lessor for the right to use the underlying asset during the lease term and recognizes a corresponding right-of-use asset related to this right. Some of our leases include options to extend the term of the lease. When it is reasonably certain that we will exercise the option, we include the impact of the option in the lease term for purposes of determining future lease payments. The Company made an accounting policy election to not recognize assets or liabilities for leases with a term of less than twelve months and to account for all components in a lease arrangement as a single combined lease component. Short-term lease payments are recognized on a straight-line basis. Certain of our lease agreements include variable rent payments, consisting primarily of rental payments adjusted periodically for inflation and amounts paid to the lessor based on cost or consumption, such as maintenance and utilities. These costs are recognized in the period in which the obligation is incurred. As the Company’s leases do not specify an implicit rate, the Company uses an incremental borrowing rate based on information available at the lease commencement date to determine the present value of the lease payments. The Company evaluates right-of-use assets for impairment when events or changes in circumstances indicate that the carrying value of the asset may not be recoverable. Additionally, the Company may choose to exit a lease prior to the end of the lease term. In circumstances when the Company has made the decision to exit the lease and does not have the ability and intent to sublease such exited facility, the Company adjusts the estimated useful life of the right-of-use asset so that it ends on the cease use date. The accelerated lease expense is recognized on a straight-line basis through the end of the useful life. Property, Equipment and Capitalized Software Property, equipment and capitalized software are stated at cost, net of accumulated depreciation and amortization. Replacements, renewals and improvements are capitalized and costs for repair and maintenance are expensed as incurred. Leasehold improvements are depreciated using the straight-line method over the shorter of the remaining lease term or the useful life of the improvement. Depreciation and amortization for all other property, equipment and capitalized software is primarily computed using the straight-line method over the estimated useful lives shown below. Estimated Useful Lives Furniture, fixtures and equipment 3 to 5 years Internal-use computer software 1.5 to 5 years Computer software 3 years The Company’s developed internal-use software is used to provide processing and information management services to customers. A significant portion of the Company’s capital expenditures is devoted to the development of such internal-use computer software. Costs incurred during the preliminary project stage are expensed as incurred. Software development costs are capitalized during the application development stage. Capitalization begins when the preliminary project stage is complete, as well as when management authorizes and commits to the funding of the project. Capitalization of costs ceases when the software is ready for its intended use. Costs related to maintenance of internal-use software are expensed as incurred. Below are the amounts of internal-use computer software capitalized within property, equipment and capitalized software and the related amortization expense incurred on all internal-use computer software during the years ended December 31: (in thousands) 2022 2021 2020 Gross amounts capitalized for internal-use computer software (including construction-in-process) $ 107,705 $ 77,808 $ 58,881 Amounts expensed for amortization of internal-use computer software $ 77,997 $ 74,189 $ 72,363 Cloud Computing Arrangements The Company capitalizes implementation costs in cloud computing arrangements, including development costs on third-party technology platforms. Such amounts are amortized to the consolidated statement of operations, when ready for intended use, over the lesser of the term of the hosting arrangement or the useful life of the underlying software. As of December 31, 2022 and 2021, the Company had the following costs capitalized with respect to cloud computing arrangements on the consolidated balance sheets: Year Ended December 31, (in thousands) 2022 2021 Gross cloud computing costs (inclusive of in-process amounts) $ 21,730 $ 10,269 Accumulated amortization 7,202 2,529 Net cloud computing costs $ 14,528 $ 7,740 Included in prepaid expenses and other current assets $ 9,342 $ 3,369 Included in other assets $ 5,186 $ 4,371 Acquisitions For acquisitions that meet the definition of a business combination, the Company applies the acquisition method of accounting where assets acquired and liabilities assumed are recorded at fair value at the date of each acquisition. Any excess of the consideration transferred by the Company over the amounts recognized for assets acquired and liabilities assumed is recorded as goodwill. The Company continues to evaluate acquisitions for a period not to exceed one year after the acquisition date of each transaction to determine whether any additional adjustments are needed to the allocation of the purchase price. The acquiree’s results of operations are included in consolidated results of the Company from the date of the respective acquisition. All other acquisitions are accounted for as asset acquisitions and the purchase price is allocated to the net assets acquired with no recognition of goodwill. Following the acquisition date, the purchase price is not subsequently adjusted. The fair value of assets acquired and liabilities assumed is based on management’s estimates and assumptions, as well as other information compiled by management. Fair values are typically determined using a discounted cash flow valuation method, though the Company utilizes alternative valuation methods when deemed appropriate. Significant acquisition valuation assumptions typically include timing and amount of future cash flows, effective income tax rates, discount rates, long-term growth expectations and customer attrition rates. Goodwill and Other Intangible Assets Goodwill is assigned to reporting units, which is at, or one level below, the Company’s operating segments. Goodwill is not amortized but is reviewed for impairment at least annually at the reporting unit level, as of October 1, or more frequently if facts or circumstances indicate that the goodwill might be impaired. Such impairment tests include comparing the fair value of the respective reporting units with their carrying values, including goodwill. The Company uses both discounted cash flow analyses and comparable company pricing multiples to determine the fair value of its reporting units. Such analyses are corroborated using market analytics. Certain assumptions are used in determining the fair value, including assumptions about future cash flows and terminal values. The Company considers the assumptions that it believes hypothetical marketplace participants would use in estimating future cash flows. In addition, an appropriate discount rate is used, based on the Company’s cost of capital or reporting unit-specific economic factors. When the fair value of a reporting unit is less than its carrying value, a goodwill impairment charge is recorded equal to the amount by which the carrying value of the reporting unit, including goodwill, exceeds its fair value, limited to the total amount of goodwill allocated to that reporting unit. See Note 9, Goodwill and Other Intangible Assets, for further information regarding the outcome of the Company’s goodwill impairment tests during 2022, 2021 and 2020. Intangible assets that are deemed to have definite lives are generally amortized using a method reflective of the pattern in which the economic benefits of the assets are expected to be consumed. If that pattern cannot be reliably determined, the assets are amortized using a straight-line method over their useful lives, which is the period of time that the asset is expected to contribute directly or indirectly to future cash flows. The Company determines the useful lives of its identifiable intangible assets after considering the specific facts and circumstances related to each intangible asset. The factors that management considers when determining useful lives include the contractual term of agreements, the history of the asset, the Company’s long-term strategy for the use of 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. The Company performs an evaluation of the remaining useful lives of the definite-lived intangible assets periodically to determine if any change is warranted. Impairment of Long-Lived Assets The Company’s long-lived assets primarily include property, equipment, capitalized software, right-of-use assets and intangible assets. The carrying values of long-lived assets are reviewed for impairment whenever events or changes in business circumstances indicate that the carrying amount of an asset may not be recoverable. Such conditions may include a reduction in operating cash flow or a significant adverse change in the manner in which the asset is intended to be used. To test for impairment of long-lived assets, the Company generally uses an estimate of the future undiscounted net cash flows of the assets over their remaining lives to determine if the value of the asset is recoverable. Long-lived assets are grouped with other assets and liabilities at the lowest level for which independent identifiable cash flows are determinable, which is generally at the reporting unit level. An asset impairment is recognized when the carrying value of the asset is not recoverable based on the analysis described above, in which case the asset is written down to its fair value. Debt Issuance Costs Debt issuance costs incurred and capitalized are amortized into interest expense over the remaining term of the respective debt arrangements using the effective interest method. Fair Value of Financial Instruments The Company holds mortgage-backed securities, U.S. treasury notes, corporate debt securities, mutual funds, money market funds, derivatives (see Note 12, Derivative Instruments) and certain other financial instruments that are carried at fair value. The Company determines fair value based upon quoted prices when available or through the use of alternative approaches, such as model pricing, when market quotes are not readily accessible or available. Various factors are considered in determining the fair value of the Company’s financial instruments, including: closing exchange or over-the-counter market price quotations; benchmark interest rates; time value and volatility factors underlying options and derivatives; price activity for equivalent instruments; and the Company’s own-credit standing. These valuation techniques may be based upon observable and unobservable inputs. Observable inputs reflect market data obtained from independent sources, while unobservable inputs reflect the Company’s market assumptions. These two types of inputs create the following fair value hierarchy: • Level 1 – Quoted prices for identical instruments in active markets. • Level 2 – Quoted prices for similar instruments in active markets; quoted prices for identical or similar instruments in markets that are not active; and model-derived valuations whose inputs are observable or whose significant value drivers are observable. • Level 3 – Instruments whose significant value drivers are unobservable. Assets and liabilities measured at fair value are classified within the fair value hierarchy in their entirety based on the lowest level of input that is significant to the fair value measurement. Our assessment of the significance of a particular input to the fair value measurement in its entirety requires judgment and considers factors specific to the asset or liability. The Company holds certain investments that are measured at their NAV as a practical expedient, which are excluded from the above fair value hierarchy. Revenue Recognition The Company accounts for the majority of its revenue under Topic 606 or ASC 310, Receivables for rights or obligations associated with financial instruments. The Company generally records revenue net, equal to consideration retained, based upon its conclusion that the Company is the agent in its principal versus agent relationships. When making this determination, the Company evaluated the nature of its promise to the customer and determined that it does not control a promised good or service before transferring that good or service to the customer, but rather arranges for another entity to provide the goods or services. The vast majority of the Company’s Topic 606 revenue is derived from stand-ready obligations to provide payment processing, transaction processing and SaaS services and support. As such, we view these services as comprising a series of distinct days of service that are substantially the same and have the same pattern of transfer to the customer. Accordingly, the promise to stand ready is accounted for as a single-series performance obligation. The transaction-based fees are generally calculated based on measures such as (i) percentage of dollar value of volume processed; (ii) number of transactions processed; or (iii) some combination thereof. The Company has entered into agreements with major oil companies, fuel retailers, vehicle maintenance providers, OTAs and health partners, which provide services and limited products to the Company’s customers. These agreements specify that a transaction is deemed to be captured when the Company has validated that the transaction has no errors and has accepted and posted the data to the Company’s records. Revenue is recognized based on the value of services transferred to date using a time elapsed output method. See Note 3, Revenue, for a description of the major components of revenue. The Company enters into contracts with certain large customers or partners that provide for fee rebates tied to performance milestones. Such rebates and incentives are calculated based on estimated performance and the terms of the related business agreements and are typically recorded within revenue. Amounts paid to certain partners in our Fleet Solutions and Travel and Corporate Solutions segments are recorded within sales and marketing expense on our consolidated statements of operations. Stock-Based Compensation The Company recognizes the fair value of all stock-based payments to employees and directors in its consolidated financial statements. The fair value of DSUs, RSUs, and PBRSUs without a market condition are determined and fixed on the grant date based on the closing price of the Company’s stock as reported by the NYSE. The Company estimates the grant date fair value of service-based stock option awards using a Black-Scholes-Merton valuation model and awards granted with market conditions (including market performance-based stock option awards, TSR performance awards, and PBRSUs with a TSR performance condition) using a Monte Carlo simulation model. Stock-based compensation expense is recorded net of estimated forfeitures over each award’s requisite service period. The Company uses the straight-line methodology for recognizing the expense associated with service-based stock options and RSU grants and a graded-vesting methodology for the expense recognition of market performance-based stock options and PBRSUs. See Note 22, Stock-Based Compensation, for further information. Advertising Costs Advertising and marketing costs are expensed in the period incurred. During the years ended December 31, 2022, 2021 and 2020, advertising expense was $23.4 million, $20.6 million and $17.4 million, respectively. Income Taxes Income taxes are accounted for under the asset and liability method. Under this method, deferred tax assets and liabilities are recognized for the 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 using enacted tax 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 rates is recognized in the period that includes the enactment date. The ultimate realization of deferred tax assets is dependent upon the generation of future taxable income during the periods in which the associated temporary differences become deductible. A valuation allowance is established for those jurisdictions in w |