Lord help me

When you miscarriage can you find out how many weeks you were ? I had a painful miscarriage didn’t know I was pregnant had a normal period going with everyday life an then I had stomach pain an begin pushin an a big blob came out wasn’t squishy or anything like a bloodclot I go to the doctor this a.m the pain was unbearable