Billing System ESLOC Values Total ESLOC = 30,000 Reused % = 30% Application ESLOC( (Total * (1- Reuse %) ) = 21,000 Persistency Framework ESLOC Used = 7000 Billing Systems Application Costs Cost (Analysis through Test) = $100,00.00 Framework Cost (Integrating Persistency Framework) = $5000.00 Persistency Framework Savings Billing System Cost per ESLOC (Application ESLOC / Cost) = $0.21 Framework Cost Savings = (Cost/ESLOC * Framework ESLOC) = $1470.00 Return on Investment (Cost Savings $ -- Framework Cost $) = $-3530.00
Figure 5: Sample billing system analysis.