Max teal opcode budget for transaction group

Hi, I’m trying to understand what is the max opcode budget for a transaction group.

If I’m correct, a transaction group can have at most:

  • 16 transactions
  • 256 inner transaction

Also, the opcode budget for a single transaction is:

  • 700 for smart contracts
  • 20,000 for logicsigs

So, defining the number of smart contract transaction as ‘Nsc’ and the number of logicsig transactions as ‘Nls’ can we say that for a transaction group we have:

  • Nsc + Nls <= 272
  • Opcode budget = Nsc * 700 + Nls * 20,000

Is this correct?

Best place to get an answer will be algorand discord.