How would I find the relationship between an object and the camera (picture included) ?

I’d trying to create a setup like this:

my current solution (broken) goes like this:

That in theory should give me the difference between the 2 vectors (blue channel removed because I don’t need it) in degrees but it’s not working as intended.

Could someone help me please ?