The COCOMO model consists of three different levels or modes:
Basic COCOMO: This mode is used for early-stage project estimates and focuses on estimating effort based on lines of code (LOC). It uses a simple formula to calculate the effort required for a project, taking into account the project size in KLOC (thousands of lines of code).
Insights V3 uses the basic model to calculate the software estimates for the selected open source projects.
Basic COCOMO calculation Formula:
The model uses a formula to calculate the development effort based on the estimated size.
Effort (in person-months) = a * (Size in KLOC)^b
Where 'a' and 'b' are coefficients specific to the type of software project being estimated. These coefficients can be derived from the table.
Example (Sample Calculation):
Let's assume you have a small open source project with a codebase size of 10,000 lines of code (LOC). The coefficients for the type of software project being estimated are a = 2.4 and b = 1.05.
To estimate the cost of the project, you need to consider the cost per person-month, which represents the average cost of one person working on the project for a month.
Example: Let's assume the cost per person-month is $6,000.
Cost = Effort * Cost per person-month (Store in DB)
Cost = 190.56 person-months * $6,000/person-month
Cost ≈ $1,143,360 (rounded to the nearest dollar)
Constants based on Software Project Types (stored in the DB):