Substituting “then” for “than” (and vice versa) is a common mistake.
So everyone knows:
Than is used for comparisons. It is a subordinating conjunction.
Then is used for time. It is a conjunctive adverb that joins two clauses (which are, naturally, separated by time).
Happy Valentine’s Day!