Creates capacity items for a CapacitySchedule based on the array of capacity values and the supplied duration.