| | | Year ended December 31, | | |||||||
| | | 2017 | | 2016 | | 2015 | | |||
| | | | | | | | | | | |
| | | (in thousands) | | |||||||
| United States | | $ | (10,401) | | $ | 18,280 | | $ | 17,902 | |
| Foreign | | | 1,574 | | | (1,058) | | | 1,710 | |
| Total (loss) income before income taxes | | $ | (8,827) | | $ | 17,222 | | $ | 19,612 | |
| | | Year ended December 31, | | |||||||
| | | 2017 | | 2016 | | 2015 | | |||
| | | | | | | | | | | |
| | | (in thousands) | | |||||||
| Current: | | | | | | | | | | |
| U.S. Federal | | $ | (31,060) | | $ | (2,934) | | $ | 1,945 | |
| U.S. State | | | (2,048) | | | (352) | | | (224) | |
| Foreign | | | 240 | | | 127 | | | 99 | |
| | | | (32,868) | | | (3,159) | | | 1,820 | |
| Deferred: | | | | | | | | | | |
| U.S. Federal | | | 16,667 | | | 7,906 | | | 3,930 | |
| U.S. State | | | 429 | | | (568) | | | - | |
| Foreign | | | 271 | | | 232 | | | 305 | |
| | | | 17,367 | | | 7,570 | | | 4,235 | |
| Total provision for (benefit from) income taxes | | $ | (15,501) | | $ | 4,411 | | $ | 6,055 | |
| | | 2017 | | 2016 | | ||
| | | | | | | | |
| | | (in thousands) | | ||||
| Deferred income taxes | | | | | | | |
| Inventories | | $ | 1,477 | | $ | 1,576 | |
| Prepaid expenses | | | (134) | | | (209) | |
| Accrued vacation | | | 14 | | | 70 | |
| Plant and equipment | | | (31,185) | | | (34,114) | |
| Federal net operating loss carryforward | | | 12,010 | | | - | |
| State investment tax credit carryforward | | | 9,036 | | | 7,721 | |
| State net operating loss carryforward | | | 2,407 | | | 352 | |
| Stock-based compensation | | | 862 | | | 1,375 | |
| State income taxes - temporary differences | | | (6,483) | | | (4,738) | |
| R&D and other federal credits | | | 677 | | | 766 | |
| Intangible assets | | | (326) | | | (273) | |
| Other | | | 50 | | | 140 | |
| Deferred income tax liabilities, net | | $ | (11,595) | | $ | (27,334) | |
| | | Year ended December 31, | | |||||||
| | | 2017 | | 2016 | | 2015 | | |||
| Statutory tax rate | | | 35.0 | % | | 35.0 | % | | 35.0 | % |
| Change in future years' tax rate | | | 125.0 | % | | - | | | - | |
| State income taxes, net of U.S. federal tax benefit | | | 3.5 | % | | 4.6 | % | | 3.3 | % |
| R&D and other federal credits | | | 0.9 | % | | (2.1) | % | | (1.2) | % |
| Employee and board stock compensation | | | (0.5) | % | | - | | | 0.1 | % |
| State investment tax credits | | | 14.9 | % | | (10.0) | % | | (5.5) | % |
| Section 199 manufacturing deduction | | | - | | | - | | | (1.5) | % |
| Change in estimates | | | - | | | (1.8) | % | | - | |
| Foreign income taxes, net of U.S. federal tax credits | | | 2.7 | % | | (1.1) | % | | 0.6 | % |
| Other | | | (5.9) | % | | 1.0 | % | | 0.1 | % |
| | | | 175.6 | % | | 25.6 | % | | 30.9 | % |