Rewrite calc_fee