title: How to calculate the technical debt?
body: <p>We try to use Sonar to manage the software quality, like this page, we can get the technical debt. 
  <a href="http://www.sonarqube.org/sqale-the-ultimate-quality-model-to-assess-technical-debt/" rel="nofollow">http://www.sonarqube.org/sqale-the-ultimate-quality-model-to-assess-technical-debt/</a></p>
  
  <p>My question is, how to define the debt to fix a violation, remove some duplicated code or a new test case. Is there any calculate algorithm?</p>