This number of points to be discarded is given as a percentage of the total number of points.
https://en.wikipedia.org/wiki/Truncated_mean
Trim count = floor( (trim percent / 100) * sample size )
For example: [8, 3, 7, 1, 3, 9] with a trim of 20%
First sort the list: [1, 3, 3, 7, 8, 9]
Sample size = 6
Then determine trim count: floot(20/100 * 6 ) = 1
Trim the list by removing 1 from each end: [3, 3, 7, 8]
Finally, find the mean: 5.2