Debt | Debt consists of the notes from the Company’s senior lender, Third Eye Capital, acting as Agent for the Purchasers (Third Eye Capital), other working capital lenders and subordinated lenders as follows: December 31, 2018 December 31, 2017 Third Eye Capital term notes $ 7,024 $ 6,931 Third Eye Capital revolving credit facility 47,225 35,371 Third Eye Capital revenue participation term notes 11,794 11,636 Third Eye Capital acquisition term notes 23,841 20,048 Cilion shareholder seller notes payable 5,974 5,824 Subordinated notes 10,080 8,725 EB-5 promissory notes 38,536 36,039 Unsecured working capital loans 4,822 4,861 GAFI Term and Revolving loans 25,821 24,351 Total debt 175,117 153,786 Less current portion of debt 17,298 15,625 Total long term debt $ 157,819 $ 138,161 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 (“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 (“Revenue Participation Term Notes”); and (iv) senior secured term loans in an aggregate principal amount of $15.0 million (“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 January 31, 2017, a Promissory Note (the “January 2017 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) May 30, 2017. In addition, as part of the January 2017 Note agreement, Aemetis used $0.5 million of the total proceeds to buy back 275 thousand common shares that were held by Third Eye Capital. In consideration of the January 2017 Note, $133 thousand of the total proceeds were paid to Third Eye Capital as financing charges. On July 10, 2017, the January 2017 Note was paid in full. On March 1, 2017, Third Eye Capital agreed to Amendment No. 13 to the Note Purchase Agreement to: (i) extend the maturity date of the Third Eye Capital Notes to April 1, 2018 in exchange for a 5% extension fee consisting of adding $3.1 million to the outstanding principal balance of the Note Purchase Agreement and allowing for the further extension of the maturity date of the Third Eye Capital Notes to April 1, 2019, at the Company’s election, for an additional extension fee of 5% of the then outstanding Third Eye Capital Notes outstanding balance, (ii) waive the free cash flow financial covenant under the Note Purchase Agreement for the three months ended December 31, 2016, (iii) provide that such covenant will be deleted prospectively from the Note Purchase Agreement, (iv) waive the default under the Note Purchase Agreement relating to indebtedness outstanding to Laird Cagan and (v) waive the covenant under the Note Purchase Agreement to permit the Company to pay off the defaulted Laird Cagan subordinated note by issuing stock. The borrowers agreed to use their best efforts to close the transaction to purchase assets in Goodland, Kansas from Third Eye Capital as described in a non-binding offer to purchase letter between an affiliate of the Company and Third Eye Capital, which closed on July 10, 2017. As consideration for such amendment and waiver, the borrowers agreed to pay Third Eye Capital an amendment and waiver fee of $750 thousand to be added to the outstanding principal balance of the Revolving Credit Facility. We evaluated the Amendment of the Notes and applied modification accounting treatment in accordance with ASC 470-50 Debt – Modification and Extinguishment On April 28, 2017, a Promissory Note (the “April 2017 Note”, and together with the Original Third Eye Capital Notes, the “Third Eye Capital Notes”) for $1.5 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 earliest of (a) closing of the Financing, (b) receipt of proceeds from any financing, refinancing or other similar transaction, (c) extension of credit by the Lender, or Agent on behalf of certain lenders or the Noteholders, to the Debtors or their affiliates, and (d) June 15, 2017. In addition, $1.0 million of this note represents fees payable by GAFI upon the closing of the Goodland transaction. On July 10, 2017, the April 2017 Note was paid in full and the fees payable by GAFI were paid. On January 4, 2018, a Promissory Note (the January 2018 Note) for $160 thousand 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 1, 2018. In consideration of the January 2018 Note, $10 thousand of the total proceeds were paid to Third Eye Capital as financing charges. On April 1, 2018, the January 2018 Note was paid in full. On February 27, 2018, a Promissory Note (the “February 2018 Note”, and 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, 2018. In consideration of the February 2018 Note, $0.1 million of the total proceeds were paid to Third Eye Capital as financing charges. The maturity date of the note was December 31, 2018 with $183 thousand in fees due and payable at the time of the redemption of the Note. On December 20, 2018, the February 2018 Note was paid in full. 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 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 quarterly 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. We evaluated Amendment No. 14 in accordance with ASC 470-60 Troubled Debt Restructuring. Troubled Debt Restructuring On March 27, 2018, Third Eye agreed to a one-year reserve liquidity facility governed by a promissory note, payable in the principal amount of up to $6 million. Borrowings under the facility are available from March 27, 2018 until maturity on April 1, 2019. Interest on borrowed amounts accrues at a rate of 30% per annum, paid monthly in arrears, 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) the closing of any new debt or equity financing, refinancing or other similar transaction between Third Eye Capital or any fund or entity arranged by them and the Company or its affiliates, (b) 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 (c) April 1, 2019. The promissory note is secured by liens and security interests upon the property and assets of the Company. If any amounts are drawn under the facility, the Company will pay a non-refundable fee in the amount of $200,000, payable from the proceeds of the first drawing under the facility. We did not draw any amounts under the facility and no balance was outstanding as of December 31, 2018 under this facility. On March 11, 2019, Third Eye agreed to increase the amount available under the reserve liquidity facility up to $8.0 million and extend the maturity date to April 1, 2020 with the same terms as above. 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 until January 1, 2020. 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. Based on the Amendment No.15, the ratio of note indebtedness covenant is waived for the quarters ended March 31, 2019, June 30, 2019, September 30, 2019 and December 31, 2019. 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.15 waived the ratio of the note indebtedness covenant over the next 12 months, the notes are classified as long-term debt. Terms of Third Eye Capital Notes A. Term Notes B. Revolving Credit Facility C. Revenue Participation Term Notes D. Acquisition Term 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 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. We have no remaining availability on the Revolving Credit Facility. 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. Cilion shareholder seller notes payable Subordinated Notes The Subordinated Notes were amended to extend the maturity date on January 1, 2018 and again on July 1, 2018 with six months extension for maturity until December 31, 2018. We evaluated these amendments and the refinancing terms of the notes and applied modification accounting treatment in accordance with ASC 470-50 Debt – Modification and Extinguishment On January 1, 2019, the Subordinated Notes were amended to extend the maturity date until the earlier of (i) June 30, 2019; (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 January 1, 2019 amendment and the refinancing terms of the notes and apply accounting treatment in accordance with ASC 470-50 Debt – Modification and Extinguishment At December 31, 2018 and December 31, 2017, the Company had, in aggregate, the amount of $10.1 million and $8.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 December 31, 2018, $35.0 million 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 December 31, 2018, $35.0 million in principal and $2.0 million in accrued interest was outstanding on the EB-5 Phase I Notes. 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 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 investments, for the issuance of up to 100 EB-5 Notes bearing interest at 3%. Each note will be issued in the principal amount of $0.5 million and due and payable five years from the date of each note, for a total aggregate principal amount of up to $50.0 million (the “EB-5 Phase II funding”). Advanced BioEnergy II, LP arranges investments with foreign investors, who each make loans to the Riverbank Cellulosic Ethanol Facility in increments of $0.5 million. The Company has sold an aggregate principal amount of $1.5 million of EB-5 Notes under the EB-5 Phase II funding since 2016 to the date of this filing. As of December 31, 2018, $1.5 million was released from escrow to the Company and $48.5 million remains to be funded to escrow. As of December 31, 2018, $1.5 million in principal was outstanding on the EB-5 Phase II Notes. 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 operational support charges 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 days period at the rate of 14.75% per annum interest rate. The term of the agreement continues until the 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 years ended December 31, 2018 and 2017, the Company made principal and interest payments to Secunderabad Oils of approximately $3.7 million and $2.4 million, respectively. As of December 31, 2018 and 2017, the Company had $0.3 million and $1.3 million outstanding under this agreement, respectively. Variable Interest Entity (GAFI) Term loan and Revolving loan On July 10, 2017, GAFI entered into a Note Purchase Agreement (“Note Purchase Agreement”) with Third Eye Capital (Noteholders). See further discussion regarding GAFI in Note 6. Pursuant to the Note Purchase Agreement, the Noteholders agreed, subject to the terms and conditions of the Note Purchase Agreement and relying on each of the representations and warranties set forth therein, to make (i) a single term loan to GAFI in an aggregate amount of $15 million (“Term Loan”) and (ii) revolving advances not to exceed ten million dollars in the aggregate (“Revolving Loan”). The interest rate per annum applicable to the Term Loan is equal to ten percent (10%). The interest rate per annum applicable to the Revolving Loans is the greater of Prime Rate plus seven and three quarters percent (7.75%) and twelve percent (12.00%). The applicable interest rates as of December 31, 2018 was 13.25%. The maturity date of the Loans (“Maturity Date”) is July 10, 2019, provided that the Maturity Date may be extended at the option of GAFI for up to two additional one-year periods upon prior written notice and upon satisfaction of certain conditions and the payment of a renewal fee for such extension. An initial advance under the Revolving Loan was made for $2.2 million as a prepayment of interest on the Term Loan for the first eighteen months of interest payments. In addition, a fee of $1.0 million was paid in consideration to Noteholders. 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. The fee of $75 thousand was recognized as expense on the Amendment date. 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 of $2.1 million based on 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. We used an outside valuation expert to value the SARs using the Monte Carlo method, and recorded the fair value of the SARs of $1.3 million as fees on Amendment No. 1 and will be amortized over the term of the loan according to ASC 470-50 Debt – Modification and Extinguishment. 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 CO 2 2 2 As of December 31, 2018 and 2017, GAFI had $15.7 million net of discounts issuance costs of $1.3 million outstanding on the Term Loan and $10.1 million on the Revolving Loan respectively. Debt repayments for the Company’s loan obligations follow: Twelve months ended December 31, Debt Repayments 2019 $ 17,298 2020 132,081 2021 25,500 2022 1,473 2023 1,500 Total debt 177,852 Debt issuance costs (2,735 ) Total debt, net of discount issuance costs $ 175,117 |