it was not clear in the initial question that the first 10 should not be included.
Set the trigger to:
"Subtotal For Any Column"
if the subtotal of the column "Quantity" is ">=" "20"
and use the following for the flat rate charge:
floor(($this->TotalColumn("Quantity") - 10) / 10) *2