Calculates the fee for a given amount.
int getFee(int amount) { int result = amount ~/ NosoConst.comissiontrfr; if (result < NosoConst.minimumFee) { return NosoConst.minimumFee; } return result; }