Debt | 10. Debt Term Loan On August 4, 2015, the Company entered into a credit and security agreement with MidCap Financial Trust, as agent, and MidCap Financial Funding XIII Trust and Silicon Valley Bank, as lenders, (the “Lenders”), to borrow up to $30,000,000 in term loans. The Company concurrently borrowed an initial term loan of $15,000,000 under the facility. The Company granted the Lenders a security interest in substantially all of its personal property, rights and assets, other than intellectual property, to secure the payment of all amounts owed under the credit facility. The Company agreed not to encumber any of its intellectual property without the Lenders’ prior written consent. The Company also agreed to maintain a balance in cash or cash equivalents at Silicon Valley Bank equal to the principal balance of the loan plus 5% for so long as the Company maintains any cash or cash equivalents in non-secured bank accounts. On July 22, 2016, the Company borrowed the remaining $15,000,000 under the credit and security agreement, in the form of a second term loan. The second term loan is subject to the same credit terms as the initial term loan under the facility. The credit and security agreement also contains certain representations, warranties, and covenants of the Company as well as a material adverse event clause. As of September 30, 2017, the Company was compliant with all covenants. Borrowings under the credit facility accrue interest monthly at a fixed interest rate of 6.25% per annum. Following an interest-only period of 19 months, principal will be due in 36 equal monthly installments commencing March 1, 2017 and ending February 1, 2020 (the “maturity date”). Upon the maturity date, the Company will be obligated to pay a final payment equal to 9% of the total principal amounts borrowed under the facility. The final payment amount is being accreted to the carrying value of the debt using the straight line method, which approximates the effective interest method. As of September 30, 2017, the carrying value of the term loan was approximately $25,227,000, of which $9,967,000 was due within 12 months and $15,260,000 was due in greater than 12 months. In connection with the credit and security agreement, the Company incurred debt issuance costs totaling approximately $150,000. These costs are being amortized over the estimated term of the debt using the straight-line method which approximates the effective interest method. The Company deducted the debt issuance costs from the carrying amount of the debt as of September 30, 2017 and December 31, 2016. As of September 30, 2017, annual principal and interest payments due under the 2015 term loan are as follows: Year Aggregate Minimum Payments (in thousands) 2017 $ 2,869 2018 11,082 2019 10,448 2020 4,383 Total $ 28,782 Less interest (855 ) Less final payment (2,700 ) Total $ 25,227 2024 Convertible Notes On May 2, 2017 the Company issued an aggregate of $201.3 million principal amount of the 2024 Convertible Notes. The 2024 Convertible Notes have a maturity date of May 1, 2024 are unsecured and accrue interest at a rate of 3.375% per annum, payable semi-annually on May 1 and November 1 of each year, beginning November 1, 2017. The Company received $194.8 million for the sale of the 2024 Convertible Notes, after deducting fees and expenses of $6.5 million. The 2024 Convertible Notes are senior unsecured obligations and bear interest at a rate of 3.375% per year, payable semi-annually in arrears on May and November 1st of each year. The 2024 Convertible Notes will mature on May 1, 2024, unless earlier repurchased or converted. Upon conversion of the 2024 Convertible Notes, at the election of each holder of a 2024 Convertible Note (the Holder), the note will be convertible into cash, shares of the Company’s common stock, or a combination thereof, at the Company’s election (subject to certain limitations in the 2015 term loan), at a conversion rate of approximately 37.3413 shares of common stock per $1,000 principal amount of the 2024 Convertible Notes, which corresponds to an initial conversion price of approximately $26.78 per share of the Company’s common stock. The Conversion Rate is subject to adjustment from time to time upon the occurrence of certain events, including, but not limited to, fundamental change events and certain corporate events that occur prior to the maturity date of the notes. In addition, if the Company delivers a notice of redemption, the Company will increase, in certain circumstances, the conversion rate for a Holder who elects to convert its notes in connection with such a corporate event or notice of redemption, as the case may be. At any time prior to the close of business on the business day immediately preceding February 1, 2024, Holders may convert all, or any portion, of the 2024 Convertible Notes at their option only under the following circumstances: (1) during any calendar quarter commencing after the calendar quarter ending on June 30, 2017 (and only during such calendar quarter), if the last reported sale price of the common stock for at least 20 trading days (whether or not consecutive) during a period of 30 consecutive trading days ending on the last trading day of the immediately preceding calendar quarter is greater than or equal to 130% of the conversion price on each applicable trading day; (2) during the five business day period after any ten consecutive trading day period (the “measurement period”) in which the trading price per $1,000 principal amount of notes for each trading day of the measurement period was less than 98% of the product of the last reported sale price of the Company’s common stock and the conversion rate on each such trading day; (3) if the Company calls any or all of the notes for redemption, at any time prior to the close of business on the business day immediately preceding the redemption date; and (4) upon the occurrence of specified corporate events. On or after February 1, 2024, until the close of business on the business day immediately preceding the maturity date, holders may convert their notes at any time, regardless of the foregoing circumstances. The Company may redeem, for cash, all or any portion of the 2024 Convertible Notes, at its option, on or after May 6, 2020 if the last reported sale price of the Company’s common stock has been at least 130% of the conversion price for at least 20 trading days during any 30 consecutive day trading period, at a redemption price equal to 100% of the principal amount of the 2024 Convertible Notes to be redeemed, plus accrued and unpaid interest. The 2024 Convertible Notes are considered convertible debt with a cash conversion feature. Per ASC 470-20, Debt with Conversion and Other Options , The carrying amount of the liability component was calculated by measuring the fair value of a similar liability that does not have an associated convertible feature. The allocation was performed in a manner that reflected our non-convertible debt borrowing rate for similar debt. The equity component of the 2024 Convertible Notes was recognized as a debt discount and represents the difference between the proceeds from the issuance of the 2024 Convertible Notes and the fair value of the liability of the 2024 Convertible Notes on their respective dates of issuance. The excess of the principal amount of the liability component over its carrying amount (“debt discount”) is amortized to interest expense using the effective interest method over seven years. The equity component is not re-measured as long as it continues to meet the conditions for equity classification. In connection with the issuance of the 2024 Convertible Notes, the Company incurred approximately $6.5 million of debt issuance costs, which primarily consisted of underwriting, legal and other professional fees, and allocated these costs to the liability and equity components based on the allocation of the proceeds. Of the total d ebt issuance costs, $4.4 million were allocated to the liability component and are recorded as a reduction of the 2024 Convertible Notes in our consolidated balance sheets. The remaining $2.1 million was allocated to the equity component and is recorded as a reduction to additional paid-in capital. Debt discount and issuance rate The table below summarizes the carrying value of the 2024 Convertible Notes as of September 30, 2017: ( in thousands Gross proceeds $ 201,250 Portion allocated to equity (additional paid-in capital) (64,541 ) Debt issuance costs (6,470 ) Portion allocated to equity (additional paid-in capital) 2,075 Amortization of debt discount and debt issuance costs 2,961 Carrying value 2024 Convertible Notes $ 135,275 |