Use Unreal Engine’s built in calculation system to do calculations and operations on blueprints, materials and everything else in the engine!
https://dev.epicgames.com/community/learning/tutorials/vvzk/unreal-engine-how-to-use-the-in-engine-calculator