Measure the distance from where your flashlight tail end will be when mounted, to the top of the slot in the VFG. This is the length of wire you will want.
Wire length part of tape switch is measured from where wire starts at end of flashlight tail cap to beginning of tape switch. Tape switch itself is not included in overall length.
It's better to have some extra length rather than too short a length. Depends on where you will mount light. I use a 5" on my M4 RAS w/KAC VFG and it fits perfect. Used a little bicycle intertube around VFG to keep secure. Works for me.
You might also want to consider the click on/off tail cap. I have one of these on my 16" and it is also a good option. Less equipment is less to go wrong. Hope this helps. good luck.
Calvin at Brightflashlights can help you with info if you need further. Outstanding guy, good prices, great products, shipping fast.