Getting veloctity's length local to another entity.

How do I get The length of an entity’s velocity, local to another entity? An entity moving closer/farther away to another entity.

(entvel1-entvel2):Length()

And its relative not local.