Need solution to a moderately complex maths problem

Ah that’s why my beam kept going towards world origin. Also my project keeps crashing at startup now. brb gonna try opening the blueprint and removing that maths expression