Relationship between number of slices and total cost