Need to use BigInteger here.
Calculate the right fee.