There is no calculation for that. Corrosion is essentially experimental.
Possibly a protective layer, of ceramic, polymer or metal, is much cheaper than a plain metal that resists bromine.
You might search for a "compatibility list" that includes bromine, but gaseous bromine is very uncommon. Normal people would avoid it.
Or list the metals and few alloys reputed against corrosion and search which ones resist bromine. Data must be scarce.
If you know an industrial supplier of gaseous bromine, their documents should tell which metals to use.