Stud and Nut Conversion Length

I'm running some K-Tec 20mm spacers (everything else standard) with extended bolts but want to change to a stud and nut set up so as not to snap the bolts. Just wondering what length stud to get. Oh I'm looking at the Grayston ones on Demon Tweeks if that helps.