What is the fee? - Insufficient BTC at address

Select Max for a transfer of BTC from an address gives a stupid message “Insufficient BTC at address” without indication of the real fee. Surely it should deduct the fee it needs, instead of risking dust being left on the address?

What is the fee, is it a % and can the wallet not set the amount so amount+fee=balance??

for answer see