rather than explain this, I'll just link to timecop's digisub guide.

It's about the clearest explanation of the whole process, it's informative and precise, and it has a good section on timing, which is what you are asking about.

You might also like apr (from infusion)'s guide to fansubbing. He goes into less detail than timecop did, but trades off with a bigger-picture view.