OK, I figured out that
(trade-received)*(100/trade-percent)- is the formuala for determining an opponents production of minerals, organics, radioactives, research points and intelligence points.
Having a trade relationship with more than one race will of course screw it up.
But I am still puzzled about...
damage/size/rof and the meaning of "rof".