Points or Cash Calculator
calculate_points_or_cashShould this flight be booked with points or cash? Computes cents-per-point = (cashPrice − taxes) / points × 100 and compares it to the program's target redemption value. Returns a clear verdict with the margin. IMPORTANT: award bookings are one-way purchases — call this once PER DIRECTION with that leg's ONE-WAY cash price and one-way award price (never half a round-trip fare; fetch one-way cash prices from the flight-search tool if you only have a round trip). Round trips often split points-one-way/cash-the-other.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route | No | ORIGIN-DEST being priced, e.g. 'BOS-SFO' (optional; anonymous aggregate stats only — include when known) | |
| program | Yes | ||
| taxesUsd | Yes | ||
| pointsCost | Yes | ||
| cashPriceUsd | Yes |