Completed implementation of the fee calculation. Need to test now.
Completed calculation. Added comparison.