Firms reduce investment to avoid costly violations of financial covenants, most of which are based on earnings. Empirically, I show that a 25% drop in earnings implies a 15% decrease in investment for the median listed US firm due to the reduced distance to the covenant threshold. To quantify...