I think the easiest way to determine level based off the trade estimate would be to look at the highest value, though it would be a little cumbersome. You would need to know a Pokemon's maximum potential CP at any given level before going into the trade.
Say you trade a Magikarp and the CP range tops out at 125. A 100% Magikarp reaches 125CP at level 20, so you would know there. This becomes cumbersome because you would need to know the maximum CP for every Pokemon at any given level to determine it based off the trade preview.
An easier way would be to use an IV checker that examines the white curve indicating how powered up the Pokemon is. I use GoIV and it uses the CP, HP, appraisals, whether it was obtained via raid/egg/research or not, and the power up curve to determine exact level and range of potential IV values. Some IV checkers need to be updated for lucky Pokemon, so keep that in mind.