Trying to convince after miscarriage

For anyone that had a miscarriage when were you able to try again and how long did it take to have a successful pregnancy?