Spawn a system with dynamic 'lifetime' length

Make a float user variable for the lifetime:

You can set it from blueprint

image