There is no way to get a base ID in a formula without hardcoding it.
There IS a roundabout way to get a table ID in a formula field. I did a writeup with screen shots in this page of Kuovonne’s Guide to Airtable.
If you get pop-up asking you to sign-up for Coda, but are not ready to create an account, you can reload the page to make the pop-up go away.