Description of Business and Summary of Significant Accounting Policies | Note 1—Description of Business and Summary of Significant Accounting Policies Description of Business IDT Corporation (“IDT” or the “Company”) is a multinational company with operations primarily in the telecommunications and payment industries. The Company has two reportable business segments, Telecom & Payment Services (formerly known as Telecom Platform Services) and net2phone-Unified Communications as a Service (“net2phone-UCaaS”) (formerly known as UCaaS). Telecom & Payment Services and net2phone-UCaaS comprise the IDT Telecom division. The Telecom & Payment Services segment provides retail telecommunications and payment offerings as well as wholesale international long distance traffic termination. The net2phone-UCaaS segment is comprised of (1) cloud-based private branch exchange, or PBX, services offered to enterprise customers mainly through value-added resellers, service providers, telecom agents and managed service providers, (2) Session Initiation Protocol, or SIP, trunking, which supports inbound and outbound domestic and international calling from an IP PBX, and (3) cable telephony. Operating segments not reportable individually are included in All Other. Basis of Consolidation and Accounting for Investments The method of accounting applied to long-term investments, whether consolidated, equity or cost, involves an evaluation of the significant terms of each investment that explicitly grant or suggest evidence of control or influence over the operations of the investee and also includes the identification of any variable interests in which the Company is the primary beneficiary. The consolidated financial statements include the Company’s controlled subsidiaries. All significant intercompany accounts and transactions between the consolidated subsidiaries are eliminated. Investments in businesses that the Company does not control, but in which the Company has the ability to exercise significant influence over operating and financial matters, are accounted for using the equity method. Investments in which the Company does not have the ability to exercise significant influence over operating and financial matters are accounted for using the cost method. Investments in hedge funds are accounted for using the equity method unless the Company’s interest is so minor that it has virtually no influence over operating and financial policies, in which case these investments are accounted for using the cost method. At July 31, 2018 and 2017, the Company had $4.6 million and $9.8 million, respectively, in investments accounted for using the equity method, and $3.0 million and $10.8 million, respectively, in investments accounted for using the cost method. Equity and cost method investments are included in “Other current assets” or “Investments” in the accompanying consolidated balance sheets. The Company periodically evaluates its equity and cost method investments for impairment due to declines considered to be other than temporary. If the Company determines that a decline in fair value is other than temporary, then a charge to earnings is recorded in “Other (expense) income, net” in the accompanying consolidated statements of income, and a new basis in the investment is established. Use of Estimates The preparation of financial statements in conformity with accounting principles generally accepted in the United States of America (“U.S. GAAP”) requires management to make estimates and assumptions that affect the amounts reported in the financial statements and accompanying notes. Actual results may differ from those estimates. Revenue Recognition Telephone service, which includes domestic and international long distance, local service, and wholesale carrier telephony service, is recognized as revenue when services are provided, primarily based on usage and/or the assessment of fees. Revenue from Boss Revolution international calling service and from sales of calling cards, net of customer discounts, is deferred until the service or the cards are used or, calling card administrative fees are imposed, thereby reducing the Company’s outstanding obligation to the customer, at which time revenue is recognized. Domestic and international airtime top-up revenue is recognized upon redemption. International airtime top-up enables customers to purchase airtime for a prepaid mobile telephone in another country. IDT Telecom enters into reciprocal transactions pursuant to which IDT Telecom is committed to purchase a specific number of minutes to specific destinations at specified rates, and the counterparty is committed to purchase from IDT Telecom a specific number of minutes to specific destinations at specified rates. The number of minutes purchased and sold in a reciprocal transaction is not necessarily equal. The rates in these reciprocal transactions are generally not at prevailing market rates. In addition, IDT Telecom enters into transactions in which it swaps minutes with another carrier. The Company recognizes revenue and the related direct cost of revenue for these reciprocal and swap transactions based on the fair value of the minutes. Prior to its spin-off, Zedge, Inc. (“Zedge”) generated over 90% of its revenues from selling its advertising inventory to advertising networks, advertising exchanges, and direct arrangements with advertisers. Zedge advertising revenue was recognized as advertisements were delivered to users through impressions, ad views or app installs, as long as evidence of the arrangement with the payer existed (generally through an executed contract), the price was fixed and determinable, and collectability was reasonably assured. In May 2014, the Financial Accounting Standards Board (“FASB”) issued Accounting Standards Update (“ASU”) No. 2014-09, Revenue from Contracts with Customers (Topic 606) The core principle of ASC 606 is that an entity should recognize revenue to depict the transfer of promised goods or services to customers in an amount that reflects the consideration to which the entity expects to be entitled in exchange for those goods or services, and the guidance defines a five-step process to achieve this core principle. The five-step process to achieve this principle is as follows: (i) identify the contract(s) with a customer, (ii) identify the performance obligations in the contract(s), (iii) determine the transaction price, (iv) allocate the transaction price to the performance obligations in the contract(s), and (v) recognize revenue when, or as, the entity satisfies a performance obligation. The Company adopted ASC 606 as of August 1, 2018 using the modified retrospective method, which will be reflected in the Company’s financial statements beginning in the first quarter of fiscal 2019. The Company identified its main revenue streams, which include Boss Revolution international calling revenue, wholesale carrier services revenue, and domestic and international airtime top-up revenue. The Company substantially completed the review and analysis of contracts and other relevant documents related to its Boss Revolution calling service retailer and direct to consumer revenue streams, wholesale carrier services revenue, domestic and international airtime top-up revenue, and other significant revenue streams to determine how to apply ASC 606 to these revenue streams. At August 1, 2018, the cumulative effect of initially applying ASC 606 is expected to be a $8.6 million reduction to“Deferred revenue”, with an offsetting reduction to “Accumulated deficit”. This adjustment is primarily due to a change in accounting for breakage primarily from the Company’s Boss Revolution international calling service, traditional calling cards, and international and domestic top-up. A customer’s nonrefundable prepayment gives the customer a right to receive a good or service in the future (and obliges the Company to stand ready to transfer a good or service). However, customers may not exercise all of their contractual rights. Those unexercised rights are referred to as breakage. Prior to the adoption of ASC 606, the Company recorded breakage revenue when the likelihood of the customer exercising its remaining rights became remote. The Company generally deemed the likelihood remote after 12 or 24 months of no activity. Per ASC 606, if an entity expects to be entitled to a breakage amount, the entity should recognize the expected breakage amount as revenue in proportion to the pattern of rights exercised by the customer, but only to the extent that it is probable that a significant reversal in the amount of cumulative revenue recognized will not occur when the uncertainty associated with the breakage is subsequently resolved. The Company determined that $8.6 million included in its opening balance of “Deferred revenue” would have been recognized as breakage revenue under ASC 606 in prior periods, and accordingly, recorded the cumulative effect adjustment as of August 1, 2018. The Company is currently reviewing future required disclosures and updating its accounting policy, which is expected to be completed for the Company’s financial statements beginning in the first quarter of fiscal 2019. Direct Cost of Revenues Direct cost of revenues for IDT Telecom consists primarily of termination and origination costs, toll-free costs, and network costs—including customer/carrier interconnect charges and leased fiber circuit charges. These costs include an estimate of charges for which invoices have not yet been received, and estimated amounts for pending disputes with other carriers. Direct cost of revenues for IDT Telecom also includes the cost of airtime top-up minutes. Direct cost of revenues for Zedge consisted of fees paid to third parties for internet hosting, content serving and filtering, and marketing automation services. Such costs were charged to expense as incurred. Direct cost of revenues excludes depreciation and amortization expense. Cash and Cash Equivalents The Company considers all highly liquid investments with an original maturity of three months or less when purchased to be cash equivalents. Restricted Cash and Cash Equivalents The Company classifies the change in its restricted cash and cash equivalents as an operating activity in the accompanying consolidated statements of cash flows because the restrictions are directly related to the operations of IDT Financial Services Limited, the Company’s Gibraltar-based bank, and IDT Telecom. In November 2016, the FASB issued an ASU that includes specific guidance on the classification and presentation of changes in restricted cash and cash equivalents in the statement of cash flows. The Company adopted the amendments in this ASU on August 1, 2018 using the retrospective transition method. The amendments in this ASU require that a statement of cash flows explain the change during the period in the total of cash, cash equivalents, and amounts generally described as restricted cash or restricted cash equivalents. Amounts generally described as restricted cash or restricted cash equivalents will be included with cash and cash equivalents when reconciling the beginning of the period and end of the period total amounts shown on the statement of cash flows. Beginning in the first quarter of fiscal 2019, the adoption will impact the beginning of the period and end of the period cash and cash equivalents balance in the statement of cash flows, as well as the net cash provided by or used in operating activities. At July 31, 2018, the aggregate cash, cash equivalents and restricted cash and cash equivalents was $203.2 million, which included $134.8 million included in current “Assets held for sale” (see Note 3) and $0.3 million included in “Other current assets” in the accompanying consolidated balance sheet. Substantially Restricted Cash and Cash Equivalents The Company treats unrestricted cash and cash equivalents held by IDT Payment Services, which provides the Company’s international money transfer services in the United States, as substantially restricted and unavailable for other purposes. At July 31, 2018 and 2017, “Cash and cash equivalents” in the Company’s consolidated balance sheets included an aggregate of $10.7 million and $10.8 million, respectively, held by IDT Payment Services that was unavailable for other purposes. Marketable Securities The Company’s investments in marketable securities are classified as “available-for-sale.” Available-for-sale securities are required to be carried at their fair value, with unrealized gains and losses (net of income taxes) that are considered temporary in nature recorded in “Accumulated other comprehensive loss” in the accompanying consolidated balance sheets. The Company uses the specific identification method in computing the gross realized gains and gross realized losses on the sales of marketable securities. The Company periodically evaluates its investments in marketable securities for impairment due to declines in market value considered to be other than temporary. Such impairment evaluations include, in addition to persistent, declining market prices, general economic and Company-specific evaluations. If the Company determines that a decline in market value is other than temporary, then a charge to operations is recorded in “Other (expense) income, net” in the accompanying consolidated statements of income and a new cost basis in the investment is established. In January 2016, the FASB issued an ASU to provide more information about recognition, measurement, presentation and disclosure of financial instruments. The Company adopted the amendments in this ASU on August 1, 2018. The amendments in the ASU include, among other changes, the following: (1) equity investments (except those accounted for under the equity method or that result in consolidation) will be measured at fair value with changes in fair value recognized in net income, (2) a qualitative assessment each reporting period to identify impairment of equity investments without readily determinable fair values, (3) financial assets and financial liabilities will be presented separately by measurement category and form of financial asset on the balance sheet or the notes to the financial statements, and (4) an entity should evaluate the need for a valuation allowance on a deferred tax asset related to available-for-sale securities in combination with the entity’s other deferred tax assets. Entities will no longer be able to recognize unrealized holding gains and losses on equity securities classified as available-for-sale in other comprehensive income. In addition, a practicability exception will be available for equity investments that do not have readily determinable fair values and do not qualify for the net asset value practical expedient. These investments may be measured at cost, less any impairment, plus or minus changes resulting from observable price changes in orderly transactions for an identical or similar investment of the same issuer. Entities will have to reassess at each reporting period whether an investment qualifies for this practicability exception. At August 1, 2018, the cumulative effect of adopting this ASU is expected to be a $1.2 million increase in “Investments”, a $0.1 million decrease in “Accumulated other comprehensive loss” and a $1.1 million reduction to “Accumulated deficit”, primarily from the measurement at fair value of the Company’s shares of Visa Inc. Series C preferred stock (see Note 9) and the derecognition of unrealized holding losses on equity securities classified as available-for-sale. Property, Plant and Equipment Equipment, buildings, computer software, and furniture and fixtures are recorded at cost and are depreciated on a straight-line basis over their estimated useful lives, which range as follows: equipment—5, 7 or 20 years; buildings—40 years; computer software—2, 3 or 5 years; and furniture and fixtures—5, 7 or 10 years. Leasehold improvements are recorded at cost and are depreciated on a straight-line basis over the term of their lease or their estimated useful lives, whichever is shorter. The Company tests the recoverability of its property, plant and equipment whenever events or changes in circumstances indicate that the carrying value of the asset may not be recoverable. The Company tests for recoverability based on the projected undiscounted cash flows to be derived from such asset. If the projected undiscounted future cash flows are less than the carrying value of the asset, the Company will record an impairment loss, if any, based on the difference between the estimated fair value and the carrying value of the asset. The Company generally measures fair value by considering sale prices for similar assets or by discounting estimated future cash flows from such asset using an appropriate discount rate. Cash flow projections and fair value estimates require significant estimates and assumptions by management. Should the estimates and assumptions prove to be incorrect, the Company may be required to record impairments in future periods and such impairments could be material. Goodwill Goodwill is the excess of the acquisition cost of businesses over the fair value of the identifiable net assets acquired. Goodwill and other indefinite lived intangible assets are not amortized. These assets are reviewed annually (or more frequently under various conditions) for impairment using a fair value approach. The Company performs its annual, or interim, goodwill impairment test by comparing the fair value of its reporting units with their carrying amounts. The Company would recognize an impairment charge for the amount by which the carrying amount exceeds the reporting unit’s fair value; however, the loss recognized would not exceed the total amount of goodwill allocated to that reporting unit. Additionally, the Company considers income tax effects from any tax deductible goodwill on the carrying amount of its reporting unit when measuring the goodwill impairment loss, if applicable. The fair value of the reporting units is estimated using discounted cash flow methodologies, as well as considering third party market value indicators. The Company’s use of a discounted cash flow methodology includes estimates of future revenue based upon budget projections and growth rates. The Company also develops estimates for future levels of gross and operating profits and projected capital expenditures. The Company’s methodology also includes the use of estimated discount rates based upon industry and competitor analysis as well as other factors. The estimates that the Company uses in its discounted cash flow methodology involves many assumptions by management that are based upon future growth projections. Calculating the fair value of the reporting units requires significant estimates and assumptions by management. Should the estimates and assumptions regarding the fair value of the reporting units prove to be incorrect, the Company may be required to record impairments to its goodwill in future periods and such impairments could be material. The Company has the option to perform a qualitative assessment to determine whether it is necessary to perform the quantitative goodwill impairment test. However, the Company may elect to perform the quantitative goodwill impairment test even if no indications of a potential impairment exist. Advertising Expense Cost of advertising is charged to selling, general and administrative expenses in the period in which it is incurred. In fiscal 2018, fiscal 2017 and fiscal 2016, advertising expense was $16.3 million, $17.4 million and $16.5 million, respectively. Capitalized Internal Use Software Costs The Company capitalizes the cost of internal-use software that has a useful life in excess of one year. These costs consist of payments made to third parties and the salaries of employees working on such software development. Subsequent additions, modifications or upgrades to internal-use software are capitalized only to the extent that they allow the software to perform a task it previously did not perform. Software maintenance and training costs are expensed in the period in which they are incurred. Capitalized internal use software costs are amortized on a straight-line basis over their estimated useful lives. Amortization expense related to such capitalized software in fiscal 2018, fiscal 2017 and fiscal 2016 was $16.1 million, $14.2 million and $12.6 million, respectively. Unamortized capitalized internal use software costs at July 31, 2018 and 2017 were $24.9 million and $22.8 million, respectively. Repairs and Maintenance The Company charges the cost of repairs and maintenance, including the cost of replacing minor items not constituting substantial betterment, to selling, general and administrative expenses as these costs are incurred. Foreign Currency Translation Assets and liabilities of foreign subsidiaries denominated in foreign currencies are translated to U.S. Dollars at end-of-period rates of exchange, and their monthly results of operations are translated to U.S. Dollars at the average rates of exchange for that month. Gains or losses resulting from such foreign currency translations are recorded in “Accumulated other comprehensive loss” in the accompanying consolidated balance sheets. Foreign currency transaction gains and losses are reported in “Other (expense) income, net” in the accompanying consolidated statements of income. Income Taxes The Company recognizes deferred tax assets and liabilities for the future tax consequences attributable to temporary differences between the financial statements carrying amounts of existing assets and liabilities and their respective tax bases. A valuation allowance is provided when it is more likely than not that some portion or all of a deferred tax asset will not be realized. The ultimate realization of deferred tax assets depends on the generation of future taxable income during the period in which related temporary differences become deductible. The Company considers the scheduled reversal of deferred tax liabilities, projected future taxable income and tax planning strategies in its assessment of a valuation allowance. Deferred tax assets and liabilities are measured using the 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 income in the period that includes the enactment date of such change. The Company uses a two-step approach for recognizing and measuring tax benefits taken or expected to be taken in a tax return. The Company determines whether it is more-likely-than-not that a tax position will be sustained upon examination, including resolution of any related appeals or litigation processes, based on the technical merits of the position. In evaluating whether a tax position has met the more-likely-than-not recognition threshold, the Company presumes that the position will be examined by the appropriate taxing authority that has full knowledge of all relevant information. Tax positions that meet the more-likely-than-not recognition threshold are measured to determine the amount of tax benefit to recognize in the financial statements. The tax position is measured at the largest amount of benefit that is greater than 50 percent likely of being realized upon ultimate settlement. Differences between tax positions taken in a tax return and amounts recognized in the financial statements will generally result in one or more of the following: an increase in a liability for income taxes payable, a reduction of an income tax refund receivable, a reduction in a deferred tax asset, or an increase in a deferred tax liability. The Company classifies interest and penalties on income taxes as a component of income tax expense. Contingencies The Company accrues for loss contingencies when both (a) information available prior to issuance of the financial statements indicates that it is probable that a liability had been incurred at the date of the financial statements and (b) the amount of loss can reasonably be estimated. When the Company accrues for loss contingencies and the reasonable estimate of the loss is within a range, the Company records its best estimate within the range. When no amount within the range is a better estimate than any other amount, the Company accrues the minimum amount in the range. The Company discloses an estimated possible loss or a range of loss when it is at least reasonably possible that a loss may have been incurred. Earnings Per Share Basic earnings per share is computed by dividing net income attributable to all classes of common stockholders of the Company by the weighted average number of shares of all classes of common stock outstanding during the applicable period. Diluted earnings per share is determined in the same manner as basic earnings per share, except that the number of shares is increased to include restricted stock still subject to risk of forfeiture and to assume exercise of potentially dilutive stock options using the treasury stock method, unless the effect of such increase is anti-dilutive. The weighted-average number of shares used in the calculation of basic and diluted earnings per share attributable to the Company’s common stockholders consists of the following: Year ended July 31 2018 2017 2016 Basic weighted-average number of shares 24,655 23,182 22,765 Effect of dilutive securities: Non-vested restricted Class B common stock 54 83 44 Diluted weighted-average number of shares 24,718 23,309 22,815 The following outstanding stock options were excluded from the calculation of diluted earnings per share because the exercise price of the stock option was greater than the average market price of the Company’s stock during the period: Year ended July 31 2018 2017 2016 Shares excluded from the calculation of diluted earnings per share 1,142 22 209 Stock-Based Compensation The Company recognizes compensation expense for all of its grants of stock-based awards based on the estimated fair value on the grant date. Compensation cost for awards is recognized using the straight-line method over the vesting period. Stock-based compensation is included in selling, general and administrative expense. In May 2017, the FASB issued an ASU to provide guidance about which changes to the terms or conditions of a share-based payment award require an entity to apply modification accounting. Pursuant to this ASU, an entity should account for the effects of a modification unless all the following are met: (1) the fair value (or calculated value or intrinsic value, if such an alternative measurement method is used) of the modified award is the same as the fair value (or calculated value or intrinsic value, if such an alternative measurement method is used) of the original award immediately before the original award is modified (if the modification does not affect any of the inputs to the valuation technique that the entity uses to value the award, the entity is not required to estimate the value immediately before and after the modification); (2) the vesting conditions of the modified award are the same as the vesting conditions of the original award immediately before the original award is modified; and (3) the classification of the modified award as an equity instrument or a liability instrument is the same as the classification of the original award immediately before the original award is modified. The Company adopted the amendments in this ASU prospectively to awards modified on or after on August 1, 2018. There was no impact on the Company’s consolidated financial statements upon adoption. Vulnerability Due to Certain Concentrations Financial instruments that potentially subject the Company to concentration of credit risk consist principally of cash, cash equivalents, restricted cash and cash equivalents, marketable securities, investments in hedge funds and trade accounts receivable. The Company holds cash and cash equivalents at several major financial institutions, which often exceed FDIC insurance limits. Historically, the Company has not experienced any losses due to such concentration of credit risk. The Company’s temporary cash investments policy is to limit the dollar amount of investments with any one financial institution and monitor the credit ratings of those institutions. While the Company may be exposed to credit losses due to the nonperformance of the holders of its deposits, the Company does not expect the settlement of these transactions to have a material effect on its results of operations, cash flows or financial condition. Concentration of credit risk with respect to trade accounts receivable is limited due to the large number of customers in various geographic regions and industry segments comprising the Company’s customer base. No single customer accounted for more than 10% of consolidated revenues in fiscal 2018, fiscal 2017 or fiscal 2016. However, the Company’s five largest customers collectively accounted for 12.5%, 12.4% and 11.2% of its consolidated revenues in fiscal 2018, fiscal 2017 and fiscal 2016, respectively. The Company’s customers with the five largest receivables balances collectively accounted for 18.7% and 35.4% of the consolidated gross trade accounts receivable at July 31, 2018 and 2017, respectively. This concentration of customers increases the Company’s risk associated with nonpayment by those customers. In an effort to reduce such risk, the Company performs ongoing credit evaluations of its significant retail, wholesale and cable telephony customers. In addition, the Company attempts to mitigate the credit risk related to specific wholesale carrier services customers by also buying services from the customer, in order to create an opportunity to offset its payables and receivables and reduce its net trade receivable exposure risk. When it is practical to do so, the Company will increase its purchases from wholesale carrier services customers with receivable balances that exceed the Company’s applicable payables in order to maximize the offset and reduce its credit risk. Allowance for Doubtful Accounts The Company estimates the balance of its allowance for doubtful accounts by analyzing accounts receivable balances by age and applying historical write-off and collection trend rates. The Company’s estimates include separately providing for customer receivables based on specific circumstances and credit conditions, and when it is deemed probable that the balance is uncollectible. Account balances are written off against the allowance when it is determined that the receivable will not be recovered. The change in the allowance for doubtful accounts is as follows: Year ended July 31 Balance at beginning of year Additions charged to costs and expenses Deductions Balance at end of year 2018 Reserves deducted from accounts receivable: Allowance for doubtful accounts (2) $ 5,207 $ 2,199 $ (2,048 ) $ 5,358 2017 Reserves deducted from accounts receivable: Allowance for doubtful accounts (2) $ 4,818 $ 686 $ (297 ) $ 5,207 2016 Reserves deducted from accounts receivable: Allowance for doubtful accounts $ 5,645 $ 1,519 $ (2,346 ) $ 4,818 (1) Primarily uncollectible accounts written off, net of recoveries. (2) Includes allowance for doubtful accounts of $2.2 million and $2.6 million held for sale at July 31, 2018 and 2017, respectively (see Note 3) Fair Value Measurements Fair value of financial and non-financial assets and liabilities is defined as an exit price, which is the price that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date. The three-tier hierarchy for inputs used to measure fair value, which prioritizes the inputs to valuation techniques used to measure fair value, is as follows: Level 1 – quoted prices (unadjusted) in active markets for identical assets or liabilities. Level 2 – quoted prices for similar assets and liabilities in active markets or inputs that are observable for the asset or liability, either directly or indirectly through market corroboration, for substantially the full term of the financial instrument. Level 3 – unobservable inputs based on the Company’s assumptions used to measure assets and liabilities at fair value. A financial asset or liability’s classification within the hierarchy is determined based on the lowest level input that is significant to the fair value measurement. The assessment of the significance of a particular input to the fair value measurement requires |