The Code Blue problem is one we see in almost every new engagement where the company works TPA programs. An owner takes jobs from a program because "they pay fast" or "it keeps the crews busy" — without ever running the actual P&L on what those jobs cost to deliver after the program's takedown.
The result is a situation where a company can be doing $400K in TPA volume in a quarter and losing money on all of it. Not breaking even — actually losing money. Revenue minus costs, including the program fee, comes out negative.
Here's how to test your own programs before that happens.
The Two-Line Calculation
For any TPA program, you need to run one calculation:
Net margin per program job = Job revenue − TPA fee − Delivery cost
"Delivery cost" means your actual cost to complete the job — labor, materials, equipment, subcontractors. Not overhead, not G&A, just the direct cost of that specific job.
If this number is consistently negative — or below 10%, which is effectively negative after overhead — you have a Code Blue situation. The program is consuming cash even though it's generating revenue.
Why This Gets Hidden
TPA fees are typically not coded as a cost of revenue. They get netted against revenue (so you see a lower revenue number but no explicit fee), or they're posted to "sales expense" or "referral fees" in the operating expense section. Either way, they don't appear as a deduction from job-level gross margin.
That means your job P&L looks better than reality. The margin on a Code Blue job might appear to be 12% in your books. The actual margin, after the 17% program takedown, might be −5%.
The fix is to code TPA fees as a direct cost of revenue per job, assigned to the program's cost code. When that happens, the real margin is visible, and the Code Blue test runs automatically every month.
Three Categories of TPA Programs
Once you run the analysis across all your programs, you'll typically find them sorting into three categories:
Keepers — programs where the volume and the margin both work. Usually your largest programs, where the relationship has been long enough that you've optimized your delivery cost for the specific job types they send you. These are worth protecting.
Renegotiables — programs where the economics are marginal, but the volume matters for crew utilization. Here the right move is usually a conversation about the takedown rate, faster payment terms, or priority dispatch on higher-margin job types. Most programs will negotiate if you come with data.
Walk-aways — programs where no negotiation will fix the math. Either the takedown is too high, the job types they send are structurally low-margin, or the administrative overhead (separate reporting, specific documentation requirements, contested supplements) eats the remaining margin. These cost you money to participate in.
The Crews Stay Busy Argument
The most common pushback we hear when owners look at this data is: "But if I drop Code Blue, my crews sit idle."
This is a real concern, and it's worth acknowledging. But it frames the alternative incorrectly. Idle crew time costs you fixed overhead (wages, benefits, vehicles). Losing-margin TPA jobs cost you all of that plus the direct job costs plus the program fee. Idle is bad. Negative-margin busy is worse.
The correct response to a Code Blue result isn't necessarily to drop the program immediately. It's to reduce volume from that program while you build replacement volume from higher-margin channels — direct carrier work, property management relationships, internal referrals. That's a 60–90 day project, not a snap decision.
The data just tells you which direction to point the effort. Without the job-level P&L, you can't even see the problem.
Related reading: The Hidden Cost of Generic Bookkeeping for Restoration Contractors · Why Your Supplements Disappear Between Xactimate and QuickBooks · The Four Cost Categories Every Restoration Job P&L Must Split