how long does it take to get pregnant again after a miscarriage?

how long does it take to get pregnant again after a miscarriage? Roughly?? I did a ovulation test tonight and I got a faint line?.. but had sex last night and this this morning...