Nonprofit firms sometimes engage in for-profit activities for the purpose of generating revenue to subsidize their mission activities. The organization is then confronted with a consumption vs. investment tradeoff, where investment corresponds to providing capacity for revenue customers, and consumption corresponds to serving mission customers. Exemplary of this approach are the Aravind Eye Hospitals in India, where profitable paying hospitals are used to subsidize care at free hospitals. We model this problem as a multi-period stochastic dynamic program. In each period, the organization must decide how much of the current assets should be invested in revenue-customer service capacity, and at what price the service should be sold. We provide sufficient conditions under which the optimal capacity and pricing decisions are of threshold type. Similar results are derived when the selling price is fixed but the banking of assets from one period to the next is allowed. We compare the performance of the optimal threshold policy with heuristics that may be more appealing to managers of nonprofit organizations, and assess the value of banking and of dynamic pricing through numerical experiments.