Optimal Policies for Deteriorating Items with Maximum Lifetime and