The Problem It Solves

AI agent business cases frequently rely on vendor token estimates and optimistic headcount assumptions while omitting human-in-the-loop review effort, integration build costs, error remediation, adoption ramps, and risk reserves. Finance leaders need transparent, auditable unit economics before committing capital.

How It Works

Users configure each AI agent's task volume, human baseline handling time, loaded hourly cost, LLM token usage and pricing, external tool fees, human review rates, fixed and ongoing platform costs, error rates, and 12-month adoption ramps. A deterministic calculation engine computes monthly P&L statements over 12 and 36 months, surfaces break-even and ROI metrics, and lets executives stress-test assumptions with live sensitivity sliders and saved scenarios.

Agentic P&L Calculator Architecture Flow 01 Workforce Inputs (Baseline, Tokens, HITL Review, Risk Reserve) 02 Deterministic 36-Month P&L & Sensitivity Engine 03 Portfolio Roll-Up, 3-Scenario Comparison & Tornado Charts 04 PostgreSQL Vault & AES-256-GCM Encrypted AI Insights 05 SGD / USD Executive Summary, CSV & A4 Print Export
Architectural flow diagram for Agentic P&L Calculator. Live UI screenshots and hosted demo URLs will be added when public instances are published.

Key Features

Digital Workforce Modelling (Up to 10 Agents)

Models baseline human cost, token and tool run costs, human-in-the-loop review cost, build/integration costs, error costs, risk reserves, and 12-month adoption ramps.

12-Month & 36-Month P&L Statement

Produces accounting-style monthly P&L tables with net saving, cumulative net saving, portfolio roll-up, and agent ranking by 3-year ROI.

Executive KPIs, Charts & Sensitivity

Visualises cumulative cash flow with break-even marker, stacked monthly cost composition, and a sensitivity tornado chart across volume, token price, review rate, error rate, and adoption speed.

Scenario Comparison & AI Insights

Compares up to three saved scenarios (Conservative, Base, Optimistic) and supports per-user AI insights via OpenRouter, OpenAI, Claude, Gemini, or Ollama with AES-256-GCM encrypted keys.

SGD/USD Currency & Executive Export

Stores inputs in USD and toggles display between SGD and USD (default 1 USD = 1.35 SGD), with CSV export, KaTeX-rendered formula documentation, and one-page A4 print summaries.

Architecture Overview

  • React 19, TypeScript, React Router, Tailwind CSS v4, and Recharts frontend served via Nginx in Docker Compose.
  • Pure, deterministic calculation engine (src/engine/calculations.ts) verified by Vitest unit tests and arithmetic reconciliation checks.
  • Node.js and Express API with JWT authentication, role-based access, AES-256-GCM encrypted AI key storage, and PostgreSQL 16 persistence.
  • Public self-registration is disabled (HTTP 403) to prevent bot signups; administrators provision accounts via /admin.
React 19 TypeScript Tailwind CSS v4 Recharts Node.js Express PostgreSQL 16 Docker Compose

Framework & Standards Alignment

Agentic P&L Framework

Practical software expression of Ian Loe's Agentic P&L Framework for AI workforce economics.

Aegis ROI Alignment

Supports disciplined separation of baseline, variable, fixed, review, error, and risk-reserve costs.

Auditable Formula Reference

Full mathematical derivations published in USER_MANUAL.md and rendered in-app with KaTeX.

Who Should Use It

  • CFOs and Finance Business Partners evaluating AI agent capital allocation and payback periods.
  • CIOs and Transformation Leads building board-ready investment cases across multiple agent workflows.
  • AI Governance Teams quantifying risk reserves and human-in-the-loop review costs alongside ROI.

Getting Started

git clone https://github.com/ianloe/agentic-PL.git
cd agentic-PL && cp .env.example .env
# Set ADMIN_EMAIL, ADMIN_PASSWORD, ADMIN_NAME, and JWT_SECRET
docker compose up --build -d
# Web app at http://localhost:8080 | API health at http://localhost:4000/api/health

Licence

Apache-2.0. Full source code, configuration templates, and documentation are available in the GitHub repository.

Need Help Applying Agentic P&L Calculator?

Tactics Solutions provides AI governance advisory, board briefings, and keynote sessions grounded in these open reference implementations.