Optimizing Lifetime Buy Quantities to Minimize Lifecycle Cost