How to get the final name for a table?

You should call the \Magento\Framework\App\ResourceConnection::getTableName() method:

A usage example