You've got it correct except that if you roll exactly your stat you should take 0 damage, which is an oversight in the text that I'll fix now. The monster stats don't come into consideration at all in the base game, but you're welcome to build on the system if you'd like to see that part of it done differently!