When should i start taking clomid ???

Sruthi

My doc suggested me to take clomid (as i have pcos and thyroid) and got preg after taking two months of medicine

But I had a miscarriage of 8 weeks on 12/20, last week i had done with some bloodworks and told that preg-harmones are reducing, can have sex but protected.

So i just wanted to know that from when can i start taking the medicine ???