4. Debt | 4. Debt Debt consists of the following: June 30, 2021 December 31, 2020 Third Eye Capital term notes $ 7,077 $ 7,066 Third Eye Capital revolving credit facility 67,592 80,310 Third Eye Capital revenue participation term notes 11,887 11,864 Third Eye Capital acquisition term notes 26,414 26,384 Third Eye Capital promissory note - 1,444 Cilion shareholder seller notes payable 6,349 6,274 Subordinated notes 13,512 12,745 Term loans on capital expenditures 5,707 5,652 EB-5 promissory notes 42,410 43,120 PPP loans - 1,134 GAFI Term and Revolving loans - 33,626 Total debt 180,948 229,619 Less current portion of debt 24,017 59,515 Total long term debt $ 156,931 $ 170,104 Third Eye Capital Note Purchase Agreement On July 6, 2012, Aemetis, Inc. and Aemetis Advanced Fuels Keyes, Inc. (“AAFK”), entered into an Amended and Restated Note Purchase Agreement with Third Eye Capital (the “Note Purchase Agreement”). Pursuant to the Note Purchase Agreement, Third Eye Capital extended credit in the form of (i) senior secured term loans in an aggregate principal amount of approximately $7.2 million to replace existing notes held by Third Eye Capital (the “Term Notes”); (ii) senior secured revolving loans in an aggregate principal amount of $18.0 million (the “Revolving Credit Facility”); (iii) senior secured term loans in the principal amount of $10.0 million to convert the prior revenue participation agreement to a note (the “Revenue Participation Term Notes”); and (iv) senior secured term loans in an aggregate principal amount of $15.0 million (the “Acquisition Term Notes”) used to fund the cash portion of the acquisition of Cilion, Inc. (the Term Notes, Revolving Credit Facility, Revenue Participation Term Notes and Acquisition Term Notes are referred to herein collectively as the “Original Third Eye Capital Notes”). On April 1, 2020, the Company exercised the option to extend the maturity of Third Eye Capital Notes to April 1, 2021 for a fee of 1% of the outstanding note balance instead of agreed fee of 5% in Amendment No.14 to the Note Purchase Agreement. We have evaluated the reduction in extension fee to 1% in accordance with ASC 470-60 Troubled Debt Restructuring. According to the guidance, we considered the 1% extension fee to be a troubled debt restructuring. On August 11, 2020, Third Eye Capital agreed to Limited Waiver and Amendment No. 17 to the Note Purchase Agreement (“Amendment No. 17”), to (i) provide that the maturity date of the Third Eye Capital Notes may be further extended at our election to April 1, 2022 in exchange for an extension fee equal to 1% of the Note Indebtedness in respect to each Note, provided that such fee may be added to the outstanding principal balance of each Note on the effective date of each such extension, (ii) provide for a waiver of the ratio of note indebtedness covenant for the quarters ended March 31, 2021 and June 30, 2021. As consideration for such amendment and waivers, the borrowers also agreed to pay Third Eye Capital an amendment and waiver fee of $0.3 million in cash (the “Amendment No. 17 Fee”). On November 5, 2020, Third Eye Capital agreed to Limited Waiver and Amendment No. 18 to the Note Purchase Agreement (“Amendment No. 18”) to provide for a waiver of the ratio of note indebtedness covenant for the quarter ended September 30, 2021. As consideration for such amendment and waivers, the borrowers also agreed to pay Third Eye Capital an amendment fee of $50 thousand. We have evaluated the 1% extension fee in Amendment No. 17, and the $50 thousand waiver fee in Amendment No. 18 in accordance with ASC 470-60 Troubled Debt Restructuring According to the guidance, we considered the 1% extension fee in Amendment No.17 and the $50 thousand waiver fee in Amendment No. 18 to be troubled debt restructurings. In order to assess whether the creditor granted a concession, we calculated the post-restructuring effective interest rate by projecting cash flows on the new terms and calculated a discount rate equal to the carrying amount of pre-restructuring of debt, and by comparing this calculation to the terms of Amendment No. 15, we determined that Third Eye Capital provided a concession in accordance with the provisions of ASC 470-60 and thus applied troubled debt restructuring accounting, resulting in no gain or loss from the application of this accounting. Using the effective interest method of amortization, the 1% extension fee of $1.0 million and Amendment No. 17 Fee of $0.3 million are being amortized over the stated remaining life of the Third Eye Capital Notes. On February 27, 2019, a promissory note (the “February 2019 Note”, together with the Original Third Eye Capital Notes, the “Third Eye Capital Notes”) for $2.1 million was advanced by Third Eye Capital to Aemetis, Inc., as a short-term credit facility for working capital and other general corporate purposes with an interest rate of 14% per annum maturing on the earlier of (a) receipt of proceeds from any financing, refinancing, or other similar transaction, (b) extension of credit by payee, as lender or as agent on behalf of certain lenders, to the Company or its affiliates, or (c) April 30, 2019. In consideration of the February 2019 Note, $0.1 million of the total proceeds were paid to Third Eye Capital as financing charges. On April 30, 2019, the February 2019 Note was modified to remove the stated maturity date and instead be due on demand by Third Eye Capital. In third quarter of 2019, the February 2019 Note was modified to include additional borrowings of $0.7 million. In first quarter of 2020, the February 2019 Note was modified to include additional borrowings of $0.6 million. The February 2019 note was fully repaid in the first quarter of 2021. On March 14, 2021, Third Eye Capital agreed to Limited Waiver and Amendment No. 19 to the Note Purchase Agreement (“Amendment No. 19”), to (i) provide for a waiver of the ratio of note indebtedness covenant for the quarter ended December 31, 2021, (ii) provide for a waiver of the consolidated unfunded capital expenditures covenant for the quarters through March 31, 2021. As consideration for such amendment and waivers, the borrowers also agreed to pay Third Eye Capital an amendment and waiver fee of $0.1 million in cash (the “Amendment No. 19 Fee”). We gave the notice to extend the maturity date of the Notes to April 1, 2022 and the extension fee equal to 1% of the Note Indebtedness in respect to each Note, provided that half of such fee may be added to the outstanding principal balance of each Note on the effective date of each such extension and rest of the balance may be payable in cash or common stock within 60 days of the date of such relevant extension. We evaluated the terms of the Amendment No. 19 and the maturity date extension and applied modification accounting treatment in accordance with ASC 470-50 Debt - Modification and Extinguishment. On August 9, 2021, Third Eye Capital agreed to the Limited Waiver and Amendment No. 20 to the Note Purchase Agreement (“Amendment No. 20”) to: (i) provide that, upon written notice to Third Eye Capital, the maturity date may be further extended to April 1, 2023 in exchange for an extension fee equal to 1% of the Note Indebtedness in respect of each Note, where half of such fee may be added to the outstanding principal balance of each Note on the effective date of each such extension; (ii) provide for a waiver of the ratio of note indebtedness covenant for the quarters ended March 31, 2022, June 30, 2022, September 30, 2022 and December 31, 2022; and (iii) provide for a waiver of the unfunded capital expenditures covenant for the quarter ended June 30, 2021 in which the Company exceeded the $100,000 capital expenditures limit. As consideration for such amendment and waivers, the borrowers also agreed to pay Third Eye Capital an amendment and waiver fee of $0.3 million in cash. We will evaluate the terms of the Amendment No.20 in accordance with ASC 470-50 Debt - Modification and Extinguishment. Based on prior amendments and Amendment No. 20, the ratio of note indebtedness covenant is waived for the quarters ended June 30, 2021 through December 31, 2022. According to ASC 470-10-45 Debt-Other Presentation Matters, if it is probable that the Company will not be able to cure the default at measurement dates within the next 12 months, the related debt needs to be classified as current. As Amendment No. 20 waived the ratio of the note indebtedness covenant over the next four quarters, the notes are classified as long-term debt. On March 6, 2020, we and a subsidiary entered into a one-year reserve liquidity facility governed by a promissory note, payable to Third Eye Capital, in the principal amount of $18 million. On March 14, 2021, Third Eye agreed to increase the amount available under the reserve liquidity facility to $70.0 million and extend the maturity date to April 1, 2022. Borrowings under the facility are available from March 14, 2021 until maturity on April 1, 2022. Interest on borrowed amounts accrues at a rate of 30% per annum, paid monthly in arrears and may be capitalized and due upon maturity, or 40% if an event of default has occurred and continues. The outstanding principal balance of the indebtedness evidenced by the promissory note, plus any accrued but unpaid interest and any other sums due thereunder, shall be due and payable in full at the earlier to occur of (a) receipt by the Company or its affiliates of proceeds from any sale, merger, equity or debt financing, refinancing or other similar transaction from any third party and (b) April 1, 2022. Any amounts may be re-borrowed up to repaid amounts up until the maturity date of April 1, 2022. The promissory note is secured by liens and security interests upon the property and assets of the Company. In return, the Company will pay a non-refundable standby fee at 2% per annum of the difference between the aggregate principal amount outstanding and the commitment, payable monthly in cash. In addition, if any initial advances are drawn under the facility, the Company will pay a non-refundable one-time fee in the amount of $0.5 million provided that such fee may be added to the principal amount of the promissory note on the date of such initial advance. On August 9, 2021, Third Eye Capital agreed to decrease the amount available under the reserve liquidity notes governed by a promissory note to $40.0 million. Terms of Third Eye Capital Notes A. Term Notes B. Revolving Credit Facility C. Revenue Participation Term Notes D. Acquisition Term Notes E. Reserve Liquidity Notes *The note maturity date can be extended by the Company to April 2023. As a condition to any such extension, the Company would be required to pay a fee of 1% of the carrying value of the debt which can be paid 50% in cash or common stock and 50% can be added to the outstanding debt. As a result of this ability to extend the maturity at the Company’s will, the Third Eye Capital Notes are classified as non-current debt. The Third Eye Capital Notes contain various covenants, including but not limited to, debt to plant value ratio, minimum production requirements, and restrictions on capital expenditures. The terms of the Third Eye Capital Notes allow the lender to accelerate the maturity in the occurrence of any event that could reasonably be expected to have a material adverse effect, such as any change in the business, operations, or financial condition. The terms of the notes allow interest to be capitalized. The Third Eye Capital Notes are secured by first priority liens on all real and personal property of, and assignment of proceeds from all government grants and guarantees from the Company’s North American subsidiaries. The Third Eye Capital Notes all contain cross-collateral and cross-default provisions. McAfee Capital, LLC (“McAfee Capital”), owned by Eric McAfee, the Company’s Chairman and CEO, provided a guaranty of payment and performance secured by all of its Company shares. In addition, Eric McAfee provided a blanket lien on substantially all of his personal assets, and McAfee Capital provided a guarantee in the amount of $8.0 million. Cilion shareholder seller notes payable Subordinated Notes On July 1, 2021, the Subordinated Notes were amended to extend the maturity date until the earlier of (i) December 31, 2021; (ii) completion of an equity financing by AAFK or Aemetis, Inc. in an amount of not less than $25.0 million; or (iii) after the occurrence of an Event of Default, including failure to pay interest or principal when due and breaches of note covenants. A 10% cash extension fee was paid by adding the fee to the balance of the new note and warrants to purchase 113 thousand shares of common stock were granted with a term of two years and an exercise price of $0.01 per share. We will evaluate the July 1, 2021 amendment and the refinancing terms of the Subordinated Notes in accordance with ASC 470-50 Debt - Modification and Extinguishment At June 30, 2021 and December 31, 2020, the Company had, in aggregate, the amount of $13.5 million and $12.7 million in principal and interest outstanding, respectively, under the Subordinated Notes. EB-5 promissory notes Advanced BioEnergy, LP arranges investments with foreign investors, who each make loans to the Keyes Plant in increments of $0.5 million. The Company has sold an aggregate principal amount of $36.0 million of EB-5 Notes under the EB-5 Phase I funding since 2012 to the date of this filing. As of June 30, 2021, $35.5 million has been released from the escrow amount to the Company, with $0.5 million remaining to be funded to escrow. During the three months ended June 30, 2021, the Company paid principal amount of one of the EB-5 investors who obtained green card approval under the program. During the three and six months ended June 30, 2021 the Company repaid $0.5 million and $1.0 million, respectively, of the EB-5 Phase I funding. As of June 30, 2021, $34.5 million in principal and $3.7 million in accrued interest was outstanding on the EB-5 Notes sold under the EB-5 Phase I funding. On October 16, 2016, the Company launched its EB-5 Phase II funding, with plans to issue $50.0 million in additional EB-5 Notes on substantially similar terms and conditions as those issued under the Company’s EB-5 Phase I funding, to refinance indebtedness and capital expenditures of Aemetis, Inc. and GAFI (the “EB-5 Phase II funding”). On November 21, 2019, the minimum investment was raised from $0.5 million per investor to $0.9 million per investor. The Company entered into a Note Purchase Agreement dated with Advanced BioEnergy II, LP, a California limited partnership authorized as a Regional Center to receive EB-5 Phase II funding investments, for the issuance of up to 100 EB-5 Notes bearing interest at 3%. On May 1, 2020 Supplement No. 3 amended the offering documents and lowered the total eligible new EB-5 Phase II funding investors to 60. Eight EB-5 investors have funded at the $0.5 million per investor amount, so 52 new EB-5 Phase II funding investors are eligible at the new $0.9 million per investor amount under the current offering. Job creation studies show it may be possible to add additional investors and increase the total offering amount in the future. Each new note will be issued in the principal amount of $0.9 million and due and payable five years from the date of each note, for a total aggregate principal amount of up to $50.8 million. Advanced BioEnergy II, LP arranges investments with foreign investors, who each make loans to the Riverbank Cellulosic Ethanol Facility in increments of $0.9 million after November 21, 2019. The Company has sold an aggregate principal amount of $4.0 million of EB-5 Notes under the EB-5 Phase II funding since 2016 to the date of this filing. As of June 30, 2021, $4.0 million has been released from escrow to the Company and $46.8 million remains to be funded to escrow. As of June 30, 2021, $4.2 million was outstanding on the EB-5 Notes under the EB-5 Phase II funding. Unsecured working capital loans In November 2008, the Company entered into an operating agreement with Secunderabad Oils Limited (“Secunderabad Oils”). The 2008 agreement provided the working capital and had the first priority lien on assets in return for 30% of the plant’s monthly net operating profit. These expenses were recognized as selling, general, and administrative expenses by the Company in the financials. All terms of the 2008 agreement with Secunderabad Oils were terminated to amend the agreement as below. On July 15, 2017, the agreement with Secunderabad Oils was amended to provide the working capital funds for British Petroleum business operations only in the form of inter-corporate deposit for an amount of approximately $2.3 million over a 95 day period at the rate of 14.75% per annum interest rate. The term of the agreement continues until either party terminates it. Secunderabad Oils has a second priority lien on the assets of the Company’s Kakinada Plant after this agreement. On April 15, 2018, the agreement was amended to purchase the raw material for business operations at 12% per annum interest rate. During the six months ended June 30, 2021 and 2020, the Company made principal and interest payments to Secunderabad Oils of none and approximately $0.6 million, respectively. As of June 30, 2021 and December 31, 2020 the Company had no outstanding balance under this agreement. GAFI Term loan and Revolving loan. On June 28, 2018, GAFI entered into Amendment No. 1 to the GAFI Term Loan with Third Eye Capital for an additional amount of $1.5 million with a fee of $75 thousand added to the loan from Third Eye Capital at a 10% interest rate. On December 20, 2018, $1.6 million from Amendment No. 1 was repaid. Pursuant to Amendment No. 1, Aemetis, Inc. entered into a Stock Appreciation Rights Agreement to issue 1,050,000 Stock Appreciation Rights (“SARs”) to Third Eye Capital on August 23, 2018, with an exercise date of one year from the issuance date with a call option for the Company at $2.00 per share during the first 11 months of the agreement either to pay $2.1 million in cash or issue common stock worth $2.1 million based on the 30-day weighted average price of the stock on the call date, and a put option for Third Eye Capital at $1.00 per share during the 11th month of the agreement where the Company can redeem the SARs for $1.1 million in cash. In the event that none of the above options is exercised, the SARs will be automatically exercised one year from the issuance date based upon the 30-day weighted average stock price and paid in cash and cash equivalents. On July 22, 2019, Third Eye Capital exercised the put option at $1.00 per share for $1.1 million. The exercise value of the SARs of $1.1 million was added to the GAFI Term Loan and the SARs fair value liability was released. The Company fully repaid the GAFI notes in the first quarter of 2021. As of June 30, 2021 and December 31, 2020, GAFI had none and $22.2 million net of debt issuance costs of none and $0.4 million outstanding on the Term Loan and none and $11.8 million on the Revolving Loan respectively, classified as current portion of long-term debt. Payroll Protection Program. Financing Agreement for capital expenditures. Scheduled debt repayments for the Company’s loan obligations follow: Twelve months ended June 30, Debt Repayments 2022 $ 24,017 2023 141,856 2024 7,945 2025 5,793 2026 945 There after 1,333 Total debt 181,889 Debt issuance costs (941 ) Total debt, net of debt issuance costs $ 180,948 |