With ten values the halves are 4,6,7,9,10 and 12,13,15,16,28, each with five values, so each quartile is the single middle value of its half.
Q1=7,Q3=15
The interquartile range is 15−7=8, so 1.5×IQR=12.
upper fence=Q3+12=15+12=27
Adding the IQR itself rather than 1.5 times it would give 23, which is the common slip. Since 28>27, that largest value is flagged as an outlier.