The difference between "tum" and "deinde&quot

I’m learning through Benjamin D’Ooge’s Latin for Beginners and I’m a bit confused. What is the difference between tum and deinde? I’ve read their definitions, but if I’m understanding it, I’m not really sure. English and Latin examples would be appreciated (Like when the english “then” would be translated into deinde as opposed to tum, and vice versa.)

Thanks in advance.

My understanding and made up examples are as follows:

Tum: “then” as in “at that time;” ex., “Caesar imperator fuit; tum Romam regnabat.”

Deinde: “then” as in “next in sequence.” English: “Add flour, then add eggs.” etc. “Caesar Galliam vicit deinde Brittaniam invasit.”

Deinde is a little more like English thence “from there, from that”. It is a compound of de and inde.

They are interchangeable in this way: they both can mean “then” in a sequence of events.

Ah, thank you then. This really clears things up a bit.