Once you had the difference in decibels from S21 you should be able to calculate the change in power ratio.
Here's an answer from chat GPT
"Convert dB to power
Formula to convert decibel change into power
To convert a decibel (dB) change into a power ratio, you
View attachment 139749can use the following formula:
Power ratio = 10^(dB change/10)
This formula can be used to calculate the ratio of two power levels, where the dB change is the difference between the two levels expressed in decibels.
For example, if you have a power level of 10 watts (dBW = 10) and you want to calculate the power ratio when the level increases by 3 dB, you can use the formula as follows:
Power ratio = 10^(3/10) = 1.995
This means that the power level has increased by a factor of 1.995 or approximately 2 times.
Similarly, if the power level decreases by 6 dB, the power ratio can be calculated as:
Power ratio = 10^(-6/10) = 0.251
This means that the power level has decreased by a factor of 0.251 or approximately 1/4 times."