I would have called the function "calculateTransferTax". It's shorter while providing the same meaning.
Also, the "tax" argument is the tax _rate_. "tax" in this instance I would expect to mean the final amount. So I'd call that parameter "taxRate".
(And I'd use ints for everything, of course)