There's various ways of testing for potency with a lack of standardization, but generally speaking, If flower is being tested at 20% THC, then it is 20% of the flowers weight.
If the flowers weight isn't being accounted for then it's a concentrate, which is going to have a compounded THC...