create Capacity Item Data
Creates capacity items for a CapacitySchedule based on the array of capacity values and the supplied duration.
Parameters
capacities
the capacities for each duration. The array must not be empty. All capacity values must be greater than or equal to 0
duration
the common duration for each capacity value. Must be greater than 0.0