How Long?

How long after a procedure, pill or exposure until sex, masturbation, toys or a test? One timeline per situation, with sources compared side by side.