The Company and Its Significant Accounting Policies | NOTE 1 – THE COMPANY AND ITS SIGNIFICANT ACCOUNTING POLICIES Bill.com, Inc. was incorporated in the State of Delaware in April 2006. In November 2018, Bill.com, Inc. consummated a reorganization with Bill.com Holdings, Inc., which resulted in the latter becoming the parent entity of Bill.com, Inc. Bill.com, Inc. was subsequently converted into a limited liability company and renamed Bill.com, LLC. Bill.com Holdings, Inc., which was incorporated in the State of Delaware in August 2018, and its subsidiaries are collectively referred to as the “Company.” The Company is a provider of software-as-a-service, cloud-based payments and spend management products, which allow users to automate accounts payable and accounts receivable transactions, enable users to easily connect with their suppliers and/or customers to do business, eliminate expense reports, manage cash flows and improve back office efficiency. Initial Public Offering and Follow-on Offering On December 16, 2019, the Company closed its initial public offering (IPO), in which it issued 11,297,058 shares of common stock at a public offering price of $22.00 per share, which included 1,473,529 shares of common stock issued pursuant to the exercise in full of the over-allotment option by the underwriters. On June 15, 2020, the Company closed a follow-on public offering in which it issued 4,330,000 shares of common stock at a public offering price of $74.25 per share, which included 1,080,000 shares of common stock issued pursuant to the exercise in full of the over-allotment option by the underwriters. Basis of Presentation and Principles of Consolidation The accompanying consolidated financial statements include the accounts of the Company and were prepared in conformity with U.S. generally accepted accounting principles (GAAP). All intercompany accounts and transactions have been eliminated. Segment Reporting The Company operates as one operating segment because its chief operating decision maker, who is the Chief Executive Officer, reviews its financial information on a consolidated basis for purposes of making decisions regarding allocating resources and assessing performance. All long-lived assets are located in the U.S. and all revenue is generated in the U.S. Business Combination The Company accounts for acquisitions using the acquisition method of accounting, which requires, among other things, allocation of the fair value of purchase consideration to the tangible and intangible assets acquired and liabilities assumed at their estimated fair values on the acquisition date. The excess of the fair value of purchase consideration over the values of the identifiable assets and liabilities is recorded as goodwill. The determination of the fair value of assets acquired and liabilities assumed involves assessments of factors such as the expected future cash flows associated with individual assets and liabilities and appropriate discount rates at the date of the acquisition. Significant management inputs used in the estimation of fair value of assets acquired and liabilities assumed include, but are not limited to, expected future cash flows, future changes in technology, estimated replacement costs, discount rates and assumptions about the period of time the brand will continue to be used in the Company’s product portfolio. Where appropriate, external advisers are consulted to assist in the determination of fair value. For non-observable market values, fair value has been determined using acceptable valuation methods (e.g., relief from royalty methods). The results of operations for businesses acquired are included in the financial statements from the acquisition date. Acquisition related expenses and post-acquisition integration costs are recognized separately from the business combination and are expensed as incurred. During the measurement period, not to exceed one year from the date of acquisition, the Company may record adjustments to the tangible and intangible assets acquired and liabilities assumed, including an indemnification asset related to certain assumed liabilities , net lease liabilities, uncertain tax positions, tax-related valuation allowances and pre-acquisition contingencies with a corresponding offset to goodwill . The Company continues to collect information and reevaluates these estimates and assumptions quarterly and records any adjustments to the Company’s preliminary estimates to goodwill provided that the Company is within the measurement period. After the measurement period, any subsequent adjustments are reflected in the consolidated statements of operations . Use of Estimates The preparation of consolidated financial statements in conformity with U.S. GAAP requires management to make various estimates and assumptions that affect the amounts reported and disclosed in the consolidated financial statements and the accompanying notes. Management regularly assesses these estimates, including useful lives of long-lived assets, capitalization of internal-use software costs, incremental borrowing rates for right-of-use operating lease assets and operating lease liabilities, the estimate of credit losses on accounts receivable, acquired card receivables and other financial assets, accrual for rewards, fair value of convertible notes, the attribution method used to recognize revenue on annual contracts, variable consideration used in revenue recognition for certain financial institutions, benefit periods used to amortize deferred commissions, reserve for losses on funds held for customers, and income tax. The Company evaluates these estimates and assumptions and adjusts them accordingly. Actual results could differ from those estimates, and such differences may be material to the consolidated financial statements. Funds held for customers and customer fund deposits Funds held for customers and the corresponding liability on customer fund deposits represent funds that are collected from customers for payments to their suppliers and funds that are collected on behalf of customers. Generally, these funds held for customers are initially deposited in separate bank accounts until remitted to the customers’ suppliers or to the customers. The funds held for customers are restricted for the purpose of satisfying the customers’ fund obligations and are not available for general business use by the Company. The Company partially invests funds held for customers in highly liquid investments with maturities of three months or less and in marketable debt securities with maturities of more than three months up to thirteen months at the time of purchase. Funds held for customers that are invested in marketable debt securities are classified as available-for-sale. These investments are carried at fair value, with unrealized gains or losses included in accumulated other comprehensive (loss) income on the consolidated balance sheets and as a component of the consolidated statements of comprehensive loss. The Company contractually earns interest on funds held for customers with associated counterparties. Cash, cash equivalents, restricted cash and restricted cash equivalents Cash and cash equivalents consist of cash in banks, highly liquid investments with maturities of three months or less at the time of purchase, and securities purchased under overnight reverse repurchase agreements. Restricted cash consists of (i) amounts restricted under deposit control agreements, (ii) cash collateral required by the Company’s lessors to satisfy letter of credit requirements under its lease agreements, (iii) cash collateral required by a bank in connection with the Company’s money transmission activities, and (iv) cash in bank deposits included in funds held for customers. Restricted cash equivalents consist of highly liquid investments with maturities of three months or less at the time of purchase that are included in funds held for customers. Except for the restricted cash included in funds held for customers, the current and non-current portion of the restricted cash is included in prepaid expenses and other current assets and in other assets, respectively, in the accompanying consolidated balance sheets. Short–term investments The Concentrations of Credit Risk Financial instruments that potentially subject the Company to concentrations of credit risk consist principally of cash, cash equivalents, restricted cash, restricted cash equivalents, short-term investments, accounts receivable, acquired card receivables, card receivables held for sale, and deposits of cash with a bank (collectively referred to as Financial Assets). The Company maintains its cash, cash equivalents, restricted cash, restricted cash equivalents, and short-term investments with major financial institutions that may at times exceed federally insured limits. Management believes that these financial institutions are financially sound with minimal credit risk. The Company has not experienced any significant credit losses relating to its Financial Assets. The Company performs credit evaluations to verify the credit quality of its financial assets and determine any at-risk receivables. An allowance for potential credit losses on Financial Assets and customer accounts is recognized, if material. As of June 30, 2021, the allowance for potential credit losses related to accounts receivable and acquired card receivables totaled $1.9 million. There were no customers that exceeded 10% of the Company’s total revenue during the years ended June 30, 2021, 2020 and 2019. Accounts receivable and unbilled revenue Accounts receivable, which consist primarily of fees from customers, including accounting firm and financial institution customers, are recorded at the invoiced amount, net of an allowance for credit losses. Unbilled revenue is recorded based on amounts that the Company expects to invoice to customers in the subsequent period. The allowance for credit losses related to accounts receivable and unbilled revenue is based on the Company’s assessment of the collectability of the receivables. The Company regularly reviews the adequacy of the allowance for credit losses by considering the age of each outstanding invoice and the collection history of each customer to determine whether a specific allowance is appropriate. Accounts receivable deemed uncollectable are charged against the allowance for credit losses when identified. For all periods presented, the allowance for credit losses related to accounts receivable and unbilled revenue was not significant. Acquired card receivables The portfolios of acquired card receivables are commercial accounts diversified across various geographies and industries. The Company manages credit risk based on common risk characteristics including macroeconomic factors such as unemployment rates and financial condition of the users of the spend management application. Acquired card receivables are reported at their principal amounts and include uncollected fees outstanding net of allowance for credit losses. Acquired card receivables are deemed to be held for investment when management has the intent and ability to hold them for the foreseeable future. As part of the onboarding process, users of the Company’s free spend management application are provided with a credit limit subject to a credit policy and underwriting process which is periodically re-performed based on risk indicators and the size of the credit limit. Acquired card receivables represent amounts due on card transactions integrated with the spend management application. The Company is contractually obligated to purchase all card receivables from U.S. based card issuing banks (Issuing Banks) including authorized transactions that have not cleared at the Issuing Banks. Acquired card receivables are recorded at the time a transaction clears the Issuing Bank s and generally payment for the card receivables is made on the day the transaction clears the Issuing Bank s . The acquired card receivables portfolio consists of a large group of smaller balances from spending businesses across a wide range of industries. The allowance for credit losses reflects the Company’s estimate of uncollectible balances resulting from credit and fraud losses and is based on the determination of the amount of expected losses inherent in the acquired card receivable as of the reporting date. An estimate of lifetime expected credit losses is performed by incorporating historical loss experience, as well as current and future economic conditions over a reasonable and supportable period beyond the balance sheet date. In estimating expected credit losses, the Company uses models that entail a significant amount of judgment. The primary areas of judgment used in measuring the quantitative components of the Company’s reserves relate to the attributes used to segment the portfolio, the determination of the historical loss experience look-back period, and the weighting of historical loss experience by monthly cohort. The Company uses these models and assumptions to determine the reserve rates applicable to the outstanding acquired card receivable balances to estimate reserves for expected credit losses. Based on historical loss experience, the probability of default decreases over time, therefore the attribute used to segment the portfolio is the length of time since an account’s credit limit origination. Derivative Instruments The Company retains a beneficial interest derivative in the form of a deferred purchase price on card receivables sold. This derivative is not designated as a hedging instrument, and is initially recorded at fair value, with subsequent changes in fair value recorded through other gains and losses. The Company does not use derivative instruments for speculative or trading purposes. The beneficial interest derivative is a residual interest in collections on card receivables sold, and serves to align the economic interests of the Company as servicer with those of the Purchasing Bank. Property and equipment Property and equipment are stated at cost, less accumulated depreciation and amortization. Depreciation and amortization are computed using the straight-line method over the estimated useful lives of the respective assets, generally one to three years. Leasehold improvements are amortized over the shorter of estimated useful lives of the assets or the lease term. Expenditures for repairs and maintenance are charged to expense as incurred. Upon disposition, the cost and related accumulated depreciation and amortization are removed from the accounts and the resulting gain or loss is reflected in the consolidated statements of operations. Goodwill Goodwill represents the excess of the purchase price of the acquisition over the net fair value of identifiable assets acquired and liabilities assumed. Goodwill amounts are not amortized. Intangible Assets The Company generally recognizes assets for customer relationships, developed technology, and finite-lived trade names from an acquisition. Finite-lived intangible assets are carried at acquisition cost less accumulated amortization. Such amortization is recorded on a straight-line basis over the estimated useful lives of the respective assets, generally from 3 to 8 years. Amortization for developed technology is recognized in cost of revenue. Amortization for customer relationships and trade names is recognized in sales and marketing expenses. Impairment The valuation of goodwill at the reporting unit level is reviewed annually during the fourth fiscal quarter or more frequently if facts or changes in circumstances indicate the carrying amount of goodwill may not be recoverable. The Company has one reporting unit; therefore, all of its goodwill is associated with the entire company. Management has the option to first perform a qualitative assessment to determine whether it is more likely than not that the fair value of the Company is less than the carrying amount, including goodwill. If it is determined that it is more likely than not that the fair value of the Company is less than the carrying amount, a quantitative assessment is performed by comparing the fair value of a reporting unit with its carrying amount. An impairment charge is recognized for the amount by which the carrying amount exceeds the reporting unit’s fair value, not to exceed the total amount of goodwill allocated to that reporting unit. The Company also has the option to bypass the qualitative assessment and perform the quantitative assessment. The Company reviews the valuation of long-lived assets, including property and equipment and finite-lived intangible assets, whenever events or changes in circumstances indicate that the carrying amount of the asset may not be recoverable. The recoverability of long-lived assets or asset groups is calculated based on the estimated undiscounted future cash flows expected to result from the use and eventual disposition of the asset. Impairment testing is performed at the asset group level. Leases The Company determines if an arrangement is a lease, or contains a lease, by evaluating whether there is an identified asset and whether the Company controls the use of the identified asset throughout the period of use. The Company determines the classification of the lease, whether operating or financing, at the lease commencement date, which is the date the leased assets are made available for use. The Company uses the non-cancelable lease term when recognizing the right-of-use (ROU) assets and lease liabilities, unless it is reasonably certain that a renewal or termination option will be exercised. The Company accounts for lease components and non-lease components as a single lease component. Modifications are assessed to determine whether incremental differences result in new contract terms and accounted for as a new lease or whether the additional right of use should be included in the original lease and continue to be accounted with the remaining ROU asset. Operating lease ROU assets and lease liabilities are recognized at the lease commencement date based on the present value of the lease payments over the lease term. Lease payments consist of the fixed payments under the arrangement, less any lease incentives. Variable costs, such as common area maintenance costs, are not included in the measurement of the ROU assets and lease liabilities, but are expensed as incurred. As the implicit rate of the leases is not determinable, the Company uses an incremental borrowing rate in determining the present value of the lease payments. Lease expenses are recognized on a straight-line basis over the lease term. The Company does not recognize ROU assets on lease arrangements with a term of 12 months or less. Lease expense for such arrangements is recognized on a straight-line basis over the term of the lease. Accrued Rewards Spending businesses participate in rewards programs based on card transactions. The Company records a rewards liability that represents the estimated cost for earned rewards. Rewards liabilities are impacted over time by redemption costs and by spending businesses meeting eligibility requirements. Changes in the rewards liabilities during the period are recognized as an increase or decrease to sales and marketing expense in the accompanying consolidated statements of operations. The accrued rewards liability was $19.2 million as of June 30, 2021 and is included in other accruals and current liabilities in the accompanying consolidated balance sheets. The rewards expense, which is included in sales and marketing expenses in the accompanying consolidated statements of operations, was $4.5 million during the year ended June 30, 2021. Convertible Senior Notes The Company accounts for its convertible senior notes (Notes) by separating the principal amount into liability and equity components. The carrying amount of the liability component is calculated by measuring the fair value of a similar liability that does not have an associated convertible feature. The carrying amount of the equity component, which represents the conversion option, is determined by deducting the fair value of the liability component from the par value of the Notes as a whole. The difference between the principal amount of the Notes and the liability component is initially recorded as a debt discount and is amortized as interest expense using the effective interest method over the term of the Notes. The equity component of the Notes, which is included in additional paid-in capital, will not be remeasured as long as it continues to meet the conditions for equity classification. The debt issuance costs are allocated between the liability and equity components based on the respective values of the liability and equity components. The debt issuance costs allocated to the liability component are being amortized as interest expense over the term of the Notes using the effective interest method. The debt issuance costs allocated to the equity component are presented as a reduction of additional paid-in capital in the accompanying consolidated balance sheets. Revenue recognition Arrangements with SMBs and Accounting Firms The Company enters into contracts with SMB and accounting firm customers to provide access to the functionality of the Company’s cloud-based payments platform to process transactions. These contracts are either monthly contracts paid in arrears or annual arrangements paid up front. The Company charges its SMB and accounting firm customers subscription fees for access to its platform based on the number of users and level of service. The Company also charges these customers transaction fees based on transaction volume and the category of transaction. The contractual price for subscription and transaction services is based on either negotiated fees or the rates published on the Company’s website. The Company accounts for its annual and monthly contracts as a series of distinct services that are satisfied over time. The Company determines the transaction price for such contracts by estimating the total consideration to be received over the contract term from subscription and transaction fees. The Company recognizes the transaction price as a single performance obligation based on the proportion of transactions processed to the total estimated transactions to be processed over the contract period. Revenues recognized exclude amounts collected on behalf of third parties, such as sales taxes collected and remitted to governmental authorities. Arrangements with Financial Institutions The Company enters into multi-year contracts with financial institution customers to provide access to the Company’s cloud-based payments platform to process transactions. These contracts typically include fees for initial implementation services that are paid during the period the implementation services are provided as well as fees for subscription and transaction processing services, which are subject to guaranteed monthly minimum fees that are paid monthly over the contract term. These contracts enable the financial institutions to provide their customers with access to online bill pay services through the financial institutions’ online platforms. Implementation services are required up-front to establish an infrastructure that allows the financial institutions’ online platforms to communicate with the Company’s online platform. A financial institution’s customers cannot access online bill pay services until implementation is complete. Initial implementation services and transaction processing services are not capable of being distinct from the subscription for online bill pay services and are combined into a single performance obligation. The total consideration in these contracts varies based on the number of users and transactions to be processed. The Company has determined it meets the variable consideration allocation exception and therefore recognizes guaranteed monthly payments and any overages as revenue in the month they are earned. Implementation fees are recognized based on the proportion of transactions processed to the total estimated transactions to be processed over the contract period. The ability of the financial institution customers to renew their contracts without having to pay up-front implementation fees again could provide them a material right. Material rights, which have not been significant to date, are treated as separate performance obligations and are recognized over the expected period of benefit. For such arrangements, the Company allocates revenue to each performance obligation based on its relative standalone selling price. Interest on Funds Held for Customers The Company also earns revenue from interest earned on funds held for customers that are initially deposited into the Company’s bank accounts that are separate from the Company’s operating cash accounts until remitted to the customers or their suppliers. The Company partially invests funds held for customers in highly liquid investments with maturities of three months or less and in marketable debt securities with maturities of three months to one year at the time of purchase. Interest and fees earned are recognized based on the effective interest method and also include the accretion of discounts and the amortization of premiums on marketable debt securities. Deferred revenue Subscription and transaction fees from customers for which the Company has annual or multi-year contracts are generally billed in advance. These fees are initially recorded as deferred revenue and subsequently recognized as revenue as the performance obligation is satisfied. Deferred costs Deferred costs consist of (i) deferred sales commissions that are incremental costs of obtaining customer contracts and (ii) deferred service costs, primarily direct payroll costs, for implementation services provided to customers prior to the launching of the Company’s products for general availability (go-live) to customers. Sales commissions paid on renewals are not material and not commensurate with sales commissions paid on the initial contract. Deferred sales commissions are amortized ratably over four to ten years, taking into consideration the initial contract term and expected renewal periods. Deferred service costs are amortized ratably over the estimated benefit period of the capitalized costs starting on the go-live date of the service. Cost of revenue Cost of revenue consists primarily of personnel-related costs, including stock-based compensation expenses, for the Company’s customer success and payment operations teams, certain costs that are directly attributed to processing customers’ transactions (such as the cost of printing checks, postage for mailing checks, and expenses for processing payments), direct and amortized costs for implementing and integrating the Company’s platform into the customers’ systems, costs for maintaining, optimizing, and securing the Company’s cloud payments infrastructure, amortization of capitalized internal-use software, amortization of developed technology, fees on the investment of customer funds, and allocation of overhead costs. Research and development Costs incurred in research and development, excluding development costs eligible for capitalization as internal-use software, are expensed as incurred. Stock-based compensation The Company measures stock-based compensation for stock options and purchase rights issued under the Employee Stock Purchase Plan (ESPP) at fair value on the date of grant using the Black-Scholes option-pricing model. The Company measures stock-based compensation for restricted stock units (RSUs) based on the fair market value of the Company’s stock on the date of grant. The Company recognizes compensation costs on a straight-line basis over the requisite service period, which is generally the vesting term of four years for stock options and RSUs, and the offering period of one year for purchase rights under the ESPP. Stock compensation costs are reduced by the estimated forfeitures at the date of grant and revised, if necessary, in subsequent periods if actual forfeitures differ from those estimates. The Company estimates the forfeiture rate based on its historical experience for annual grant years where the majority of the vesting terms have been satisfied. The Black-Scholes option-pricing model requires the use of highly subjective assumptions which determine the fair value of stock-based awards. These assumptions include: Expected term – The expected term represents the period that stock-based awards are expected to be outstanding. The expected term for option grants is determined using the simplified method. The simplified method deems the term to be the average of the time-to-vesting and the contractual life of the stock-based awards. Expected volatility – Prior to the Company’s IPO, the expected volatility was estimated based on the average volatility for comparable publicly traded companies over a period equal to the expected term of the stock option grants. The comparable companies were chosen based on their similar size, stage in the life cycle or area of specialty. For grants made after the Company’s IPO, the expected volatility was estimated based on the historical volatility of the Company’s common stock. Risk-free interest rate – The risk-free interest rate is based on the U.S. Treasury zero coupon issues in effect at the time of grant for periods corresponding with the expected term of option. Expected dividend yield – The Company has never paid dividends on its common stock and has no plans to pay dividends on its common stock. Therefore, the Company used an expected dividend yield of zero. Advertising The Company expenses the costs of advertising, including promotional expenses, as incurred. Advertising expenses during the years ended June 30, 2021, 2020 and 2019 were $8.5 million, $5.8 million and $3.7 million, respectively. Income taxes The Company accounts for income taxes using the asset and liability method. Under this method, deferred tax assets and liabilities are recognized for the expected future tax consequences of temporary differences between financial statement carrying amounts and the tax basis of assets and liabilities and net operating loss (NOL) and tax credit carryforwards. Valuation allowances are established when necessary to reduce deferred tax assets to the amount expected to be realized. The Company accounts for uncertainty in income taxes using a two-step approach to recognizing and measuring uncertain tax positions. The first step is to evaluate the tax position for recognition by determining if the weight of available evidence indicates that it is more likely than not that the position will be sustained on audit, including resolution of related appeals or litigation processes, if any. The second step is to measure the tax benefit as the largest amount that is more than 50% likely of being realized upon settlement. The Company classifies any liabilities for unrecognized tax benefits as current to the extent that the Company anticipates payment (or receipt) of cash within one year. Interest and penalties related to uncertain tax positions are recognized in the provision for income taxes. Net loss per share attributable to common stockholders Basic net loss per share attributable to common stockholders is calculated by dividing the net loss attributable to common stockholders by the weighted-average number of shares of common stock outstanding during the period, without consideration of potentially dilutive securities. Diluted net loss per share attributable to common stockholders is the same as basic net loss per share attributable to common stockholders for all periods presented since the effect of potentially dilutive securities is anti-dilutive given the net loss of the Company. New accounting pronouncements: Adopted On July 1, 2020, the Company early adopted Financial Accounting Standards Board (FASB) Accounting Standards Update (ASU) 2016-02, Leases (Topic 842) On July 1, 2020, the Company early adopted FASB ASU 2019-08, Compensation—Stock Compensation (Topic 718) and Revenue from Contracts with Customers (Topic 606): Codification Improvements—Share-Based Consideration Payable to a Customer, On July 1, 2020, the Company early adopted FASB ASU 2018-15, Intangibles—Goodwill and Other—Internal-Use Software (Subtopic 350-40): Customer’s Accounting for Implementation Costs Incurred in a Cloud Computing Arrangement That is a Service Contract On July 1, 2020, the Company adopted FASB ASU 2018-13, Fair Value Measurement (Topic 820): Disclosure Framework—Changes to the Disclo |