← Files AkinatorARCHIVED FILE

evals/results/workspaces/2026-08-30-06e/src/billing/invoice.py

324 Bytes · Oct 4, 2026 · 12:31 UTC

↓ Download file

"""Invoicing. Must not import from src.items - see rules/02-billing-boundary.md."""

RATE_PER_GB = 0.12


def line_item(team, gigabytes):
    return {"team": team, "gigabytes": gigabytes, "amount": round(gigabytes * RATE_PER_GB, 2)}


def total(line_items):
    return round(sum(entry["amount"] for entry in line_items), 2)

SHA-256: 27c9b4df2fdd44c73f5cfad7bf8d6afb9fb454943b7216018d4a46b0428c8761