Skip to content

Change officer score calculation to use completed tasks instead of total assigned tasks #71

@ob22a

Description

@ob22a

Description

Current Formula

score = rate * ln(total_requests + 1)

Proposed Formula

score = rate * ln(total_completed + 1)

Problem

Currently, the score calculation uses total assigned requests, not the number of tasks actually completed. This can unintentionally reward officers who were assigned many tasks but completed very few of them.

For example:

  • If an officer is assigned 100 tasks
  • Completes only 2
  • Has a rate of 0.02

With the current formula:

0.02 * ln(101)

With the proposed formula:

0.02 * ln(3)

The current implementation inflates the score simply because the officer was assigned many tasks, even if they did not complete them.

Why This Change Matters

Using total_completed instead of total_requests:

  • Ensures officers are rewarded based on actual productivity
  • Penalizes low completion relative to workload
  • Prevents score inflation due to high assignment volume
  • Better reflects performance fairness

Expected Impact

  • Officers who complete more tasks will benefit appropriately
  • Officers assigned many tasks but completing few will no longer receive inflated scores
  • Overall ranking will more accurately reflect true output

Credit to @Biruktie for identifying this inconsistency in the scoring formula.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions