# Time-to-Kill Calculator

> Time-to-Kill Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-03).

Estimates the seconds and number of landed hits required to defeat a target given weapon damage, target HP, hit chance, and attack rate.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/time-to-kill-calculator?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/time-to-kill-calculator-d18f65dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jhOtVIYd0PPt4p6c4gpMD

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability time-to-kill-calculator-d18f65dc -d '<json body>'
```

Example prompt: How many hits and how many seconds will it take to kill an enemy with 150 HP if my weapon does 25 damage per hit, fires 2 attacks per second, and has a 90% hit chance?

## When to prefer this

Use this endpoint when you need a quick, deterministic combat TTK calculation for game design, balancing, or simulation purposes and have numeric weapon and target stats available. Prefer it over manual spreadsheet math when integrating TTK into an automated game-balance pipeline or AI-driven design assistant.

## Known failure modes

- Invalid parameter types (non-numeric values) may cause a 400 error
- hit_chance of 0 would result in infinite TTK or an error
- attacks_per_second of 0 would cause a division-by-zero scenario
- Very large HP or very small damage values may produce unexpectedly large outputs
- Missing required fields may use defaults (10 damage, 100 HP, 1.0 hit chance, 1 APS)

## How this service works

Time-to-kill calculator: Estimate seconds and landed hits needed to defeat a target.

## Output

Returns the estimated number of seconds to kill the target and the number of landed hits required, computed from the given damage, target HP, hit chance, and attacks per second.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "damage": {
   "type": "number",
   "default": 10
  },
  "target_hp": {
   "type": "number",
   "default": 100
  },
  "hit_chance": {
   "type": "number",
   "default": 1
  },
  "attacks_per_second": {
   "type": "number",
   "default": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/time-to-kill-calculator-d18f65dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
