If you use Get Normal in Texture, plug that in to a Y to Scaler, then Clamp 0 1, that will give you a greyscale range for surfaces facing up. You can then use an Adjust Colour to pull that range into the angle you're looking for, without getting into maths trying to figure out how to convert that greyscale into degrees of angles.