Nice, yeah, that seems right.
Some friendly advise for the future. Don’t use an existing variable and give it a different meaning. This wouldn’t have happened if you had simply calculated a B*d variable based on the existing one in a new variable.
LGTM
The other issue I outlined with some (many) of my nodes showing highly different numbers for TB*d compared to total stored is unrelated. I’ll create a different post around that.