Error corrected

Calculating angle from B->A rather than A->B