Sex, when is it safe again?

How long did your drs say you had to wait until you could have sex again?