not until then in a sentence

It was not until then that I realized my mistake.

When that gets to 4 percent, and I think it will, then pull the trigger-but not until then.”