Get the new 8sp chain (SRAM). Wrap it round the large chainring and the largest sprocket (but not through the rear mech), and to that length add one full link (one inch). Break the chain so it has an 'inner' link at both ends, the length allowing for a quicklink (half inch) to join. If in doubt, go longer not shorter.