After miscarriage

Had a procedure done in may to get rid of 2 polyps in my uterus and also to take care of some endometriosis. Sept 22 was my first ever positive test after 5 years of negatives. Unfortunately on October 3 we lost our little babe. How long does it take to be back to normal? I feel like I'm back to normal other then extra emotional because of this hard journey. How long did it take for you to get pregnant after something like this?