calculateFeeRate

Calculate the `FeeRate` for a given transaction.

To calculate the fee rate for a `Transaction` with inputs not owned by this wallet you must manually insert the TxOut(s) into the tx graph using the `insert_txout` function.

Note tx does not have to be in the graph for this to work.