Determination of sampling amount during validation process

How to determine the amount of quantity to be sampled during process validation

It is as per unit dose

Whether there is any formula to calculate the amount to be sampled ,Can you please explain in detail?

The quantity of sample requirement depends upon the analysis requirement.

for intermediate stages -These are mentioned in inprocess analytical method, control procedures.
for finished product-it should able to cover all the required tests.