# Mining Two-Rate Energy Charge — Target Gap Calculator

> Mining Two-Rate Energy Charge — Target Gap 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-23).

Calculates the gap between a user-supplied revenue or profit target and the computed two-rate (peak/off-peak) energy cost for cryptocurrency mining operations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-mining-two-rate-bill-target-gap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mining-two-rate-energy-charge-target-gap-calculator-4299623f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8NYD8sYaBnd2zFGVrUTFh

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 mining-two-rate-energy-charge-target-gap-calculator-4299623f -d '<json body>'
```

Example prompt: Calculate the target gap for my mining operation where my target is $500 profit, peak usage is 150 kWh at $0.12/kWh, and off-peak usage is 300 kWh at $0.04/kWh.

## When to prefer this

Choose this endpoint when you need a quick, deterministic calculation of the gap between a specific financial target and a two-rate (peak + off-peak) electricity bill for a mining context, with formula transparency and bounded output. Prefer this over generic calculator APIs when you need the mining-specific preset logic and tiered energy rate handling baked in.

## Known failure modes

- Missing required values (peak_kwh, peak_usd, offpeak_kwh, offpeak_usd) returns a validation error
- Zero or negative kWh/USD values rejected due to exclusiveMinimum constraint
- Extremely large input values near the schema maximum may produce overflow edge cases
- Payment not fulfilled (x402 protocol) results in 402 Payment Required response
- Malformed JSON body returns a 400 Bad Request

## How this service works

Mining two-rate energy charge — Target gap calculation: Target gap calculation for Mining two-rate energy charge. Supplied mining assumptions only; formula and units disclosed. No live prices, mining or guaranteed return. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded target gap calculation report.

## Output

A bounded target gap calculation report showing the numerical difference between the user-supplied target value and the computed two-rate energy cost (sum of peak and off-peak kWh multiplied by their respective USD rates), along with the formula and units used. No live prices or guaranteed returns are included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "values": {
   "type": "object",
   "default": {
    "peak_kwh": 100,
    "peak_usd": 0.1,
    "offpeak_kwh": 200,
    "offpeak_usd": 0.05
   },
   "required": [
    "peak_kwh",
    "peak_usd",
    "offpeak_kwh",
    "offpeak_usd"
   ],
   "properties": {
    "peak_kwh": {
     "type": "number",
     "default": 100,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "peak_usd": {
     "type": "number",
     "default": 0.1,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "offpeak_kwh": {
     "type": "number",
     "default": 200,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "offpeak_usd": {
     "type": "number",
     "default": 0.05,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mining-two-rate-energy-charge-target-gap-calculator-4299623f/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)
