Labor

I'm 36 weeks pregnant and I believe I've lost my mucus plug. I've been having back pains and belly pains. Not 100% if they're contractions or not. How long until I go into labor?