==
Use the below way to pass the two variables to the function.

$newfee = feeValue($var,$fee);

Now $newfee will have the calculated value/function return value.