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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tenhaw_ai_roi-1.0.1.tar.gz | 6.4 kB | With provenance | Details for tenhaw_ai_roi-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tenhaw_ai_roi-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for tenhaw_ai_roi-1.0.1-py3-none-any.whl |
Total release size: 14.4 kB
Release files / tenhaw_ai_roi-1.0.1.tar.gz
| Download URL | tenhaw_ai_roi-1.0.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e66b4429294bf5e29759fd391ff83d182168370a3d17aa87f0b6a11df62158ee
|
|
BLAKE2b-256 checksum How to use checksums |
5961036cbb3007933fd88a20e5fbd9ac353cb17bb8bf12ee0378128a71ed5985
|
| 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 logRelease files / tenhaw_ai_roi-1.0.1-py3-none-any.whl
| Download URL | tenhaw_ai_roi-1.0.1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c40ea942c164f629cbedacc61120e44f9b18b60b3039af6a4fbaa06dab6cbfe
|
|
BLAKE2b-256 checksum How to use checksums |
8e6363e64025beb8bc17adad4f199b22f362a29ee44629f60b0b264f4950c69c
|
| 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 logSecurity for tenhaw-ai-roi 1.0.1
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.
Attestation for tenhaw_ai_roi-1.0.1.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 logA 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.