Skip to main content

tenhaw-ai-roi

Explainable AI business cases for internal investment and transformation tools.

When to use

  • Use when comparing low, base and high AI investment scenarios.
  • Use when an agent needs monthly cash flows, NPV, payback and recovered capacity separately.
  • These calculations use supplied assumptions; they are not a quote or financial advice.

Install

pip install tenhaw-ai-roi

Quick start

from tenhaw_ai_roi import calculate_roi

report = calculate_roi(
    {
        "useCase": "Example",
        "users": 10,
        "minutesPerTask": 20,
        "tasksPerUserPerMonth": 20,
        "savings": {"low": 0.1, "base": 0.2, "high": 0.3},
        "hourlyCost": 50,
        "buildCost": 1000,
        "monthlyRunCost": 100,
        "adoptionMonths": 3,
        "horizonMonths": 12,
        "annualDiscountRate": 0.1,
        "cashRealisation": 0,
        "currency": "GBP",
    }
)
assert report["scenarios"]["base"]["totalCashBenefit"] == 0

API

validate_input(input), calculate_roi(input), estimate_project_cost(input) and render_report(report, format="json"). Formats: json, md, html.

Methodology and sources

Cash benefits require explicit cash realisation. Recovered staff capacity is reported as hours; it is not treated as a cash saving. The initial build cost and monthly run cost are included in NPV and ROI. Adoption ramps linearly; annual discounting is applied at monthly fractions of a year. Project costs use editable people, duration and day-rate assumptions, never a claimed market price. The same JSON schemas and golden vectors test the TypeScript and Python implementations. Code is MIT; the bundled authored assumptions in roi-defaults.v1.json are CC BY 4.0.

Built by Tenhaw

Tenhaw builds practical AI and delivery tools. For help applying the findings, book a discovery call.

Metadata

Release files for tenhaw-ai-roi 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tenhaw-ai-roi 1.0.0
File Size Uploaded Provenance Actions
tenhaw_ai_roi-1.0.0.tar.gz 6.3 kB With provenance Details for tenhaw_ai_roi-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tenhaw-ai-roi 1.0.0
File Interpreter ABI Platform Actions
tenhaw_ai_roi-1.0.0-py3-none-any.whl Python 3 none any Details for tenhaw_ai_roi-1.0.0-py3-none-any.whl

Total release size: 14.4 kB

Release files / tenhaw_ai_roi-1.0.0.tar.gz

Download URL tenhaw_ai_roi-1.0.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d42c14b11b909ac20afcdcd2a05449d0e2544bb09bf315451fae678937edcccb
BLAKE2b-256 checksum
How to use checksums
fbef80e617b52680e4acb6f9392d23de17539d248290be7db24fc41924ea0fd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / tenhaw_ai_roi-1.0.0-py3-none-any.whl

Download URL tenhaw_ai_roi-1.0.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
158accfe94913de642957227fa87cbfba452da223d565512a7cec26eff87467e
BLAKE2b-256 checksum
How to use checksums
6bb400abd9cae0ece58a03297a0c70f080efcbcef5a4ad7eb769f5d695b3a5d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for tenhaw-ai-roi 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tenhaw_ai_roi-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page