Impurities Calculation

Hello, please let me know exact process to determine the impurities limit for In-house Pharma Product. Give the reference of any article for related calculation.