I need some help with a formula for programming use!
It's strength training related, so lets say I squat $100kg$ for a max($100\%$)
And in one workout perform $80kg$ for a total of $20$ repetitions, thats $80\%$ relative to max.
And then I do $70kg$ for a total of $40$ repetitions, which is $70\%$ relative to max weight wise ofc.
So simply the average intensity (intensity being $\%$ relative to max) would be $80+70/2 = 75\%$.
But really I did the double amount of reps with $70\%$ so more work was done with a lighter weight and when you add the repetitions to the equation of average it changes, I happen to know that the average would then be $73,6\%$, I just dont know the formula.
I got some help with this yesterday with this formula $(20/(40+20) \times 80) + (40/(20+40) \times 70) = 73,3\%$ so while this is farely close, if I change the repetitions done with $80\%$ to only 1 repetition and plug that into the formula its returns like $35\%$ which ofc is wrong, it shouldnt be able to go lower than $70\%$ when that extra repetition was done at a heaver weight than $70\%$ if this makes sense?