Ah, yeah. I thought I had spelled that out somewhere. A basic roll is just a single d6.
I figured it out easily but I suggest you add another case Greater than, less than, or equal to in the advantage vs disadvantage table