4. Debt | Debt consists of the notes from our senior lender, Third Eye Capital, other working capital lenders and subordinated lenders as follows: June 30, 2020 December 31, 2019 Third Eye Capital term notes $ 7,038 $ 7,024 Third Eye Capital revolving credit facility 71,308 62,869 Third Eye Capital revenue participation term notes 11,821 11,794 Third Eye Capital acquisition term notes 26,310 25,518 Third Eye Capital promissory note 2,231 2,815 Cilion shareholder seller notes payable 6,199 6,124 Subordinated notes 11,988 11,502 Term loan on Equipment purchase 5,652 - EB-5 promissory notes 42,246 41,932 PPP loans 1,134 - Unsecured working capital loans 1,370 2,631 GAFI Term and Revolving loans 32,172 30,216 Total debt 219,469 202,425 Less current portion of debt 23,665 22,740 Total long term debt $ 195,804 $ 179,685 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 March 27, 2018, Third Eye Capital agreed to Limited Waiver and Amendment No. 14 to the Note Purchase Agreement (“Amendment No. 14”) to: (i) extend the maturity date of the Third Eye Capital Notes by two years to April 1, 2020 in exchange for an amendment fee consisting of 6% (3% per year) of the outstanding note balance in the form of an increase in the fee payable in the event of a redemption of the Third Eye Capital Notes (as defined in the Note Purchase Agreement); (ii) provide that the maturity date may be further extended at our election to April 1, 2021 in exchange for an extension fee of 5%; (iii) provide for an optional waiver of the ratio of note indebtedness covenant until January 1, 2019 with the payment of a waiver fee of $0.25 million; and (iv) remove the redemption fee described in (i) above from the calculation of the ratio of note indebtedness covenant. In addition to the fee discussed in (i), as consideration for such amendment and waiver, the borrowers also agreed to pay Third Eye Capital an amendment and waiver fee of $0.5 million to be added to the outstanding principal balance of the Revolving Credit Facility. Based on the terms of Amendment No. 14, on April 1, 2020, the Company exercised option to extend the maturity to April 1, 2021 for a reduced fee of 1% on the outstanding debt which was added to the outstanding balance of the notes on April 1, 2020. On March 11, 2019, Third Eye Capital agreed to Limited Waiver and Amendment No. 15 to the Note Purchase Agreement (“Amendment No. 15”), to waive the ratio of note indebtedness covenant through December 31, 2019. As a consideration for this amendment, the Company also agreed to pay Third Eye Capital an amendment fee of $1.0 million to be added to the redemption fee which is due upon redemption of the Notes. On November 11, 2019, Third Eye Capital agreed to Limited Waiver and Amendment No. 16 to the Note Purchase Agreement (“Amendment No. 16”), to waive the ratio of note indebtedness covenant for the quarters ended March 31, 2020, June 30, 2020, September 30, 2020 and December 31, 2020. As a consideration for this amendment, the Company also agreed to pay Third Eye Capital an amendment fee of $0.5 million to be added to the redemption fee which is due upon redemption of the Notes. 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 may be further extended at our election to two 1-year terms 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 or $0.4 million worth of shares of the Company issued at the 10-day weighted average price. We will evaluate the Amendment No. 17 in accordance with ASC 470-50 Debt – Modification and Extinguishment Based on Amendment No. 16, the ratio of note indebtedness covenant is waived for the quarters ended September 30, 2020 and December 31, 2020. Based on Amendment No. 17 above, the ratio of note indebtedness is waived covenant for the quarters ended March 31, 2021 and June 30, 2021. According to ASC 470-10-45 debt covenant classification guidance, 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 the Amendment No. 16 and Amendment No. 17 waived the ratio of the note indebtedness covenant over the next four quarters, as such, the notes are classified as long-term debt. 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 will 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. As of June 30, 2020, the outstanding balance of principal and interest on the February 2019 Note was $2.2 million. 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 the Amendment No.14. We have evaluated the reduction in extension fee to 1% in accordance with ASC 470-60 Troubled Debt Restructuring. Troubled Debt Restructuring 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 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 Aemetis, Inc. 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. *The note maturity date can be extended by the Company to April 2022. 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 in cash or 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. Cilion shareholder seller notes payable Subordinated Notes On July 1, 2020, the Subordinated Notes were amended to extend the maturity date until the earlier of (i) December 31, 2020; (ii) completion of an equity financing by AAFK or Aemetis in an amount of not less than $25.0 million; or (iii) after the occurrence of an Event of Default (as defined in the Note and Warrant Purchase Agreements), 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, 2020 amendment and the refinancing terms of the Subordinated Notes in accordance with ASC 470-50 Debt – Modification and Extinguishment At June 30, 2020 and December 31, 2019, the Company had, in aggregate, $12.0 million and $11.5 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, 2020, $35.0 million has been released from the escrow amount to the Company, with $0.5 million remaining in escrow and $0.5 million to be funded to escrow. As of June 30, 2020, $35.0 million in principal and $3.1 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 already 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 additional investors may be possible to 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, 2020, $4.0 million was released from escrow to the Company and $46.8 million remains to be funded to escrow. As of June 30, 2020, $4.1 million in principal and interest was outstanding on the EB-5 Notes under the EB-5 Phase II funding. Working capital loans In November 2008, the Company entered into an operating agreement with Secunderabad Oils Limited (“Secunderabad Oils”). 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 days 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, 2020 and 2019, the Company made principal and interest payments to Secunderabad Oils of approximately $0.6 million and $0.5 million, respectively. As of June 30, 2020 and December 31, 2019, the Company had none and $0.6 million outstanding under this agreement, respectively. 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. On December 3, 2018, GAFI entered into Amendment No. 2 to the GAFI Term Loan with Third Eye Capital for an additional amount of $3.5 million from Third Eye Capital at a 10% interest rate. GAFI borrowed $1.8 million against this Amendment No. 2 with a $175 thousand fee added to the loan and $0.2 million was withheld from the $1.8 million for interest payments. $1.5 million is available to draw under GAFI Amendment No. 2 for the CO2 Project (“CO2 Term Loan”). Among other requirements, the Company is also required to make the following mandatory repayments of the CO2 Term Loan: (i) on a monthly basis, an amount equal to 75% of any payments received by the Company for CO2 produced by Linde LLC, (ii) an amount equal to 100% of each monthly payment received by the Company for land use by Linde for CO2 plant, (iii) on a monthly basis, an amount equal to the product of: $0.01 multiplied by the number of bushels of corn grain used in the ethanol production at the Keyes Plant. Based on the mandatory payments, an amount of $0.9 million is estimated to be paid in the next 12 months and is classified as current debt as of June 30, 2020. As of June 30, 2020, GAFI had $21.0 million outstanding on the GAFI Term Loan and $11.1 million on the GAFI Revolving Loan respectively. Payroll Protection Program. The PPP Loans are evidenced by promissory notes, dated May 1, 2020 and April 30, 2020 (the “Notes”), between the Company, as Borrower, and Bank of America, N.A., as Lender (the “Lender”). The interest rate on the Note is 1.00% per annum. No payments of principal or interest are due during the six-month period beginning on the funding date (the “Deferral Period”). If the SBA does not confirm forgiveness or only partly confirms forgiveness of the PPP Loans, or Borrower fails to apply for loan forgiveness, the Borrower will be obligated to repay to the Bank the total outstanding balance remaining due under the PPP Loans, including principal and interest and in such case, the Lender will establish the terms for repayment of the Loan in a separate letter to be provided to the Borrower in which the letter will set forth the loan balance, the amount of each monthly payment, the interest rate (not in excess of a fixed rate of one percent (1.00%) per annum), the term of the PPP Loans, and the maturity date, which, if not established by the Lender, shall be two (2) years from the funding date of the PPP Loans. Scheduled debt repayments for the Company’s loan obligations follow: Twelve months ended June 30, Debt Repayments 2021 $ 23,665 2022 171,214 2023 14,935 2024 6,634 2025 2,436 Thereafter 1,403 Total debt 220,287 Debt issuance costs (818 ) Total debt, net of debt issuance costs $ 219,469 |