You want your grain bed to be appx. 170F when sparging, this is what stops all the enzyme action, anything above that will start to extract tannins.
Calculations for such are complicated and depend on a ton of things, like mash thickness, amount of ingredients, type of ingredients, sparging method, mash ph, type of tun used, etc, etc, that is why I use software for it.
Brew on brotha!:rockin: