Skip to content

Commit

Permalink
corrected the estimates formula
Browse files Browse the repository at this point in the history
  • Loading branch information
agoteti committed Feb 20, 2024
1 parent 4d4771c commit a7637e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private Map<String, Float> findSQLStats(StandardReport report) {
// creation of new statements, as a ballpark number 8 function points can be modified.
float total = stats.get(SELECT) + stats.get(INSERT) + stats.get(CREATE) + stats.get(DELETE) + stats.get(UPDATE) + stats.get(DROP) + stats.get(MERGE);
stats.put(TOTAL, total);
this.totalSQLPersonDays = (total / (BFFP.SQL.getValue() * 8) ) ;
this.totalSQLPersonDays = (total / BFFP.SQL.getValue());
this.totalSQLPersonDays = (this.totalSQLPersonDays > 0 && this.totalSQLPersonDays <= 0.5) ? (float)0.5 : this.totalSQLPersonDays;
this.totalSQLPersonDays = BigDecimal.valueOf(this.totalSQLPersonDays).setScale(2, RoundingMode.HALF_UP).floatValue();
stats.put(TMPL_PH_TOTAL_MHRS, Float.valueOf(formatter.format(this.totalSQLPersonDays)));
Expand Down

0 comments on commit a7637e9

Please sign in to comment.