I believe Li and Bi are encapsulated in B, here. However, I think the 1.2 should be pulled out of that whole parenthesis since it's 1.2 times the sum of those values according to the formula.
I am also curious how to get the lore factor of ingredients. I can't imagine reverse engineering that...