General and administrative expenses: General and administrative expenses mainly include compensation, traveling and other administrative expenses of non-sales-related departments, such as the finance department, information systems department and human resources department. General and administrative expenses amounted to $43.0 million for the six months ended December 31, 2021, representing an increase of $18.2 million, or 73.4%, compared to $24.8 million for the same period in the prior year. The increase was primarily due to a $6.5 million year-over-year increase in allowance for credit losses and our increased investments in strategic planning, internal management, compliance and corporate governance to improve our core competitiveness. In addition, we also spent legal and third-party consulting fees in connection with the evaluation of unsolicited non-binding buyout proposals. Allowance for credit losses amounted to $8.0 million for the six months ended December 31, 2021, compared to $1.5 million in the same period last year, of which one customer had a credit loss of $4.7 million. As a percentage of total revenues, general and administrative expenses were 7.6% and 11.6% for the six months ended December 31, 2020 and 2021, respectively.
Research and development expenses: Research and development expenses represent mostly employee compensation, materials consumed and experiment expenses related to specific new product research and development, as well as any expenses incurred for basic research on advanced technologies. For the six months ended December 31, 2020, research and development expenses were $36.7 million, representing an increase of $8.1 million, or 28.3%, compared to $28.6 million for the same period in the prior year. The increase was primarily due to our increased investments in research and development activities, including the upgrading of mainstream products and new products developed to meet the needs of the digital infrastructure market, such as the new-generation DCS Macs V7, smart factory and smart city rail. For the six months ended December 31, 2021, labor costs accounted for 64.6% of total research and development expenses. As a percentage of total revenues, research and development expenses were 8.8% and 9.9% for the six months ended December 31, 2020 and 2021, respectively.
VAT refunds and government subsidies: PRC tax administration provides refunds out of the value added tax (“VAT”) they collect in order to encourage the research and development efforts made by certain qualified enterprises. Some of our subsidiaries in China received such refunds. All VAT refunds that have no further conditions to be met are recognized in the statements of comprehensive income when cash or approval from the tax administration is received. For the six months ended December 31, 2021, VAT refunds were $5.8 million, representing a decrease of $0.4 million, or 6.5%, compared to $6.2 million for the same period in the prior year. As a percentage of total revenues, VAT refunds were 1.9% and 1.6% for the six months ended December 31, 2020 and 2021, respectively.
The local governments in China also provide financial subsidies to encourage research and development efforts made by certain qualified enterprises. Some of our subsidiaries received such subsidies. For the government subsidies that have no further conditions to be met, the funds received are recognized in the statements of comprehensive income; for the subsidies that have certain operating conditions yet to be met, the fund received are recorded as liabilities and will be released to income when the conditions are met. Subsidy income from the government increased by $2.3 million, or 85.2%, to $5.0 million for the six months ended December 31, 2021 from $2.7 million for the same period in the prior year.
Income from operations: Income from operations decreased by $15.8 million to $38.4 million for the six months ended December 31, 2021 from $54.2 million for the same period in the prior year.
Other income, net: For the six months ended December 31, 2021, the other income, net decreased by $1.8 million from $2.8 million for the same period in the prior year, to $1.0 million for the current period.
Gains on disposal of an investment in an equity investee: We had $8.0 million gains on disposal of an investment in an equity investee for the six months ended December 31, 2021, which were in relation to our disposal of Hunan LingXiang Maglev Technology Co., Ltd. in October 2021.
Share of net income of equity investees: Our share of net income of equity investees decreased to $1.0 million for the six months ended December from $4.7 million for the same period in the prior year, as a result of our share of decreased net income from our equity investees China Techenergy Co., Ltd and Hunan LingXiang Maglev Technology Co., Ltd.
Interest income: For the six months ended December 31, 2021, interest income decreased by $0.5 million or 7.5% from $6.7 million for the same period in the prior year, to $6.2 million for the current period. As a percentage of total revenue, interest income was 2.1% and 1.7% for the six months ended December 31, 2020 and 2021, respectively. The interest income was mainly earned from short-term investments and cash and cash equivalents.
6