Basic RB calculation questions

Could someone please give me the exact expression required for a simple
OrderRel ReqQty (-) the total amount of FromInvt from the ShipQty tables.
Please show exact structure if possible ?

Thanks much,

Gary
KRG