This dissertation studies the design of optimal incentives for agents that make many decisions over time. If an agent is able to allocate resources between consumption and saving, then his optimal choice involves equating the marginal value of consumption with the marginal return from saving. However, if the agent also must make a discrete choice (such as whether to cover-up some bad news), then there is a technical problem: the return from saving is not a differentiable function. The second chapter develops envelope theorems that establish that this problem is irrelevant. The non-differentiable points only occur at suboptimal choices, and first-order conditions equating marginal cost with marginal benefit do in fact apply. The third chapte...