Budget-first planning
Adds each reserved delay only when it fits inside the configured wait budget, then identifies the next delay that would exceed it.
Day 035 / APIs / Reliability
A dependency-free Python CLI that calculates how many capped exponential-backoff retries fit inside a fixed wait budget, with an optional conservative jitter allowance.
Adds each reserved delay only when it fits inside the configured wait budget, then identifies the next delay that would exceed it.
Models a configurable multiplier and delay ceiling while rejecting unbounded or non-finite timing inputs.
Covers waiting only; operation time, network latency and successful delivery are explicitly outside the calculation.
Fixed wait-budget planning
Capped exponential backoff
Conservative jitter allowance
Retries separated from total attempts
Readable and JSON reports
Twelve standard-library tests included
Argparse, dataclasses, Decimal and JSON provide the complete dependency-free command-line workflow.
Models capped exponential backoff, retry counts, total attempts and conservative jitter reservation.
Twelve tests cover exact budgets, caps, jitter rounding, invalid inputs, text scope and CLI JSON output.