add the JMW calculate fee function