Operation system using scoreboard and transfering it to nbt data

Hello!, So I'm currently developing a datapack and I encountered a minor issue. I want to make operations using a scoreboard and then transfer the data of the scoreboard to NBT data. Specifically, I'm working on implementing a damage system where the weapon damage is calculated as follows: (Base damage * (strength / 100 + 1))
Continue to help post