The only unknown in this model is the total demand (TD) attribute, where TD(p,t) is the total demand for product p in period t. Total demand stems from two sources—external demand (ED) from customers and internal demand for production requirements. We compute TD by incorporating the part's lead time. Thus, when TD is nonzero in a period, production must begin in that period.