Hi Revalin,
ah yes. I figured that out. But I was wondering how to programmatically determine that. But I've since figured it out.
I wasn't sure how to get the exact "input" amount from the getrawtransaction api call, because each 'vin' only had the txid. There were multiple outputs (addresses) for each input. Then after some deeper research I found that the 'vout' reference in each input was a reference to the output of that corresponding input.
Once I found that out, it was each to calculate the input total and then minus the outputs to get the fee!