Linking Coronal to Interplanetary Magnetic Helicity