This math is already in our repo. I am having trouble understanding what is preventing you from using it. It seems like less effort to get it right than putting in a comment and us discussing it back and forth. Or just set the variable to 0 until someone who needs it writes it themselves.