I understood Carnot's theorem in theory, but I still have some doubt on the practical use of it.
In particular I would like to know: if I have any reversible cycle followed by a gas, then the thermal efficiency of that cycle will be $$\eta=1-\frac{T_{\mathrm{min}}}{T_{\mathrm{max}}}$$
Where $T_{\mathrm{min}}$ is the lowest and $T_{\mathrm{max}}$ the highest among the temperatures of the states involved in the cycle. Is this use of the theorem correct or is there something wrong?
The following example made me doubt about this: consider the reversible cycle in the picture, made of two isobaric processes and two adiabatics.
In this case $T_{\mathrm{min}}=T_D$ and $T_{\mathrm{max}}=T_B$ but the efficiency turns out to be
$$\eta=1-\frac{T_D}{T_A}$$
While, using Carnot's theorem I would have said $$\eta= 1-\frac{T_D}{T_B}$$
So I think that my interpretation of the way to use the theorem is wrong. Any suggestion on where my mistake is is highly appreciated.