- or download this
$fee = determine_maximum_fee();
sub determine_total_fee {
- or download this
$fee = ($tfee / 100 + $sfee/100 + 0.0000001) * 100
- or download this
$mfee = 200 if ($fee >= 100);
- or download this
$fee = $mfee if $mfee;
- or download this
return $fee;
}
- or download this
use constant BREAK_POINT => 100;
use constant BONUS_FEE => 200;
my $total_fee = $tfee+$rfee >= BREAK_POINT ? BONUS_FEE : $tfee+$rfee;