If you're being charged $40, you must have chosen the option to deduct your TurboTax fees from your federal refund.
This option is called Pay With My Refund (also known as Refund Processing Service). There’s a $40 processing fee charged by a third-party bank handling the transaction.
See the TurboTax Help article Can I pay with my refund? for more information.