Deferred tax assets and liabilities as of March 31, are as follows:
At March 31, 2019, we had $199.1 million of a federal net operating loss carryforwards that expire, if unused, in fiscal years 2031 to 2038, and $11.5 million of federal net operating loss carryforwards that can be carried forward indefinitely. Our Hong Kong, Malaysia, and Singapore subsidiaries have $0.4 million, $0.1 million, and $0.2 million of net operating loss carryforwards respectively. The losses for Hong Kong, Malaysia and Singapore can be carried forward indefinitely.
At March 31, 2019 our India subsidiary had $0.4 million of minimum alternative tax credits reported as other noncurrent assets on our Consolidated Balance Sheet. Our India subsidiary operates in a “Special Economic Zone (“SEZ”)”. One of the benefits associated with the SEZ is that the India subsidiary is not subject to regular India income taxes during its first 5 years of operations. The aggregate value of the benefit of the SEZ during the current fiscal year is $0.5 million.
At March 31, 2019 we also had $127.5 million of state net operating loss carryforwards that expire, if unused, in fiscal years 2020 through 2039.
We recorded valuation allowances related to certain deferred income tax assets due to the uncertainty of the ultimate realization of the future benefits from those assets. At March 31, 2019, the total valuation allowance against deferred tax assets of $57.9 million was comprised of $57.0 million for federal and state deferred tax assets, and $0.9 million associated with deferred tax assets in Hong Kong, Malaysia, Singapore and the Philippines.
In assessing the realizability of deferred tax assets, management considers whether it is more-likely-than-not that some or all of the deferred tax assets will not be realized. We have recorded a valuation allowance offsetting substantially all of our deferred tax assets. The ultimate realization of deferred tax assets depends on the generation of future taxable income during the periods in which those temporary differences are deductible.
Management considers the scheduled reversal of deferred tax liabilities (including the impact of available carryback and carryforward periods), projected taxable income, and tax planning strategies in making this assessment. In order to fully realize the deferred tax assets, we will need to generate future taxable income before the expiration of the deferred tax assets governed by the tax code.
Because of our losses in current and prior periods, management believes that it is more-likely-than-not that we will not realize the benefits of these deductible differences. The amount of the valuation allowance, however, could be reduced in the near term. The exact timing will be based on the level of profitability that we are able to achieve and our visibility into future results. Our recorded tax rate may increase in subsequent periods following a valuation release. Any valuation allowance release will not affect the amount of cash paid for income taxes.
The undistributed earnings of our foreign subsidiaries are not subject to U.S. federal and state income taxes unless such earnings are distributed in the form of dividends or otherwise to the extent of current and accumulated earnings and profits. The undistributed earnings of foreign subsidiaries are permanently reinvested and totaled $3.1 million and $1.7 million as of March 31, 2019 and 2018, respectively.
We made the determination of permanent reinvestment on the basis of sufficient evidence that demonstrates we will invest the undistributed earnings overseas indefinitely for use in working capital, as well as foreign acquisitions and expansion. The determination of the amount of the unrecognized deferred U.S. income tax liability related to the undistributed earnings is not practicable.
Prior to the adoption of ASU 2016-09 in the first quarter of fiscal 2018, we used the with-and-without approach for ordering tax benefits derived from the share-based payment awards. Using the with-and-without approach, actual income taxes payable for the period were compared to the amount of tax payable that would have been incurred absent the deduction for employee share-based payments in excess of the amount of compensation cost recognized for financial reporting.
As a result of this approach, tax net operating loss carryforwards not generated from share-based payments in excess of cost recognized for financial reporting were considered utilized before the current period's share-based deduction.
Table:
(In thousands) | 2019 | 2018
Deferred tax assets: |  | 
Accrued liabilities | $3,944 | $2,720
Allowance for doubtful accounts | 120 | 143
Inventory valuation reserve | 41 | 20
Federal losses and credit carryforwards | 45,227 | 42,713
Foreign net operating losses | 730 | 623
State losses and credit carryforwards | 9,886 | 9,592
Deferred revenue | 488 | 652
Goodwill and other intangible assets | — | 286
Other | 65 | 96
 | 60,501 | 56,845
Less: valuation allowance | (57,852) | (54,260)
Total | 2,649 | 2,585
Deferred tax liabilities: |  | 
Property and equipment & software amortization | (361) | (412)
Goodwill and other intangible assets | (2,706) | (2,277)
Total | (3,067) | (2,689)
Total deferred tax liabilities | $(418) | $(104)


Question: What was the average accrued liabilities for 2018 and 2019?
Answer: 3332
Calculation: (3,944 + 2,720) / 2