Hello
I think you coul work with a sampling scheme insted of that formula, because there is a restriction in the use of formula, and it is that P3 is used as calculation base not for result. What you are trying to do is use a sampling scheme.
Best regads
Carlos Díaz