In this paper, we based on the manufacturer's perspective to explore the variant products and skewed quality characteristic distribution due to unstable production process and assignable causes. The traditional quality loss function was revised to measure the quality cost of the product and the defective ones will be reworked or scrapped. This study will build a mathematical model for total expecting profit. By using the computerized numerical analysis method to find out the optimal quality investment program and decide whether the inspection plan will be executed. Finally, hoping the researching results can be referenced for practical applications and future studies.