An excess-cost algorithm, and the dashboard I deployed it on
Six teams reported how stretched they were six different ways, and three hand-built monthly reports disagreed with each other. I wrote an algorithm that turns a target profit margin into a budget, and any overspend into a number of people, then built and deployed the dashboard it runs on.
New to these terms? Plain-English key
- GPM (gross profit margin)
- The share of revenue left after the direct costs of delivering the work.
- Allowable cost
- The most a project can cost and still hit its target margin.
- Excess headcount
- The overspend expressed as a number of people, so a resourcing decision can act on it.
- Rate card
- A price list giving every person a cost by grade and country of origin.
- YTD
- Year to date: the actual figures so far this financial year.
Everyone knew cost was too high. Nobody could say by how much.
Resourcing decisions ran on advocacy: the team that argued most persuasively about being stretched tended to get the next hire.
Teams calculated utilisation on different bases. Leave, support duty and internal work were treated inconsistently, so a high number and a low number could describe the same reality.
Only closed actuals were counted, so a team was judged on what had already happened while the commitments that would decide the year sat outside the measure.
Even where an overrun was visible in ringgit, nothing converted it into heads, grades or origins, so the finding never became a resourcing instruction.
Every scenario question meant a new manual extract and a wait of days, so scenarios were rarely asked and almost never compared.
The algorithm, then the view it ships in.
Set a target margin and the model works out the most the project can cost. Whatever it costs beyond that is the overspend, shown in ringgit and as a number of people.
Try this: Pull the target margin down to 20% and watch the overspend disappear.
More figures
On the dashboard
Built and deployed in-house, refreshed monthly.
The same figures as the dashboard shows them: one source, one period, four views (performance, forecast, resources, optimisation).
Work back from the target margin, then ship it where people can use it.
Invert the margin target
Margin is reported after the fact, so the algorithm runs it backwards: allowable cost = revenue × (1 − target margin). Cost becomes a budget you can be measured against before the year closes.
Cost the forecast off a rate card
Every person is priced from their grade and country of origin against a fixed manday month, summed into a monthly burn rate and run to year end, beside the secured and unsecured revenue forecast.
Refresh monthly
Each month actuals replace the forecast they supersede and the forward view is recalculated, so the measure moves with the portfolio.
Express the gap in heads
Excess cost, divided by the cost of a head over the remaining months, becomes excess headcount: a number a resourcing conversation can act on directly.
Build the dashboard and deploy it
I built it in Python and deployed it to the server myself: four views over one reconciled source, with hires, leavers, grades and origins as inputs, so a scenario is answered in the meeting.