# Calculating Person Quality

There is a three steep

- Find the Weighted-Defect from the table this value of table can changes for different company

Defect Types | Weights |

Serious | 10 |

Medium | 3 |

Trivial | 1 |

Weighted-Defect =(10 x Serious) + (3 x Medium) + (1 x Trivial)

For instance : There are 300 serious, 200 medium, and 100 trivial defect then

Weighted-Defect = (10 x 300) + (200 x 3) + (100 x 1) = 3000 + 600 + 100 = 3700

2.Find the Weighted-Defect-Density using formula

Weighted-Defect-Density =Weighted-Defect/LOC(Lines of Code)

3.Find Quality with using formula

Quality=1-Weighted-Defect-Density

Not: Quality can not be negative when it is negative change it with zero