tip-calculator
Compute the tip, total, and per-person split for a bill. All amounts use the same (unspecified) currency — the engine doesn't care about currency codes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill | Yes | Pre-tip bill amount, in the same currency as the output. | |
| split | No | Number of people splitting the bill. Defaults to 1. | |
| tip_percent | Yes | Tip percentage (e.g. 18 for 18%). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tip | Yes | Tip amount. | |
| bill | Yes | Pre-tip bill amount. | |
| split | Yes | Number of people the bill is split between. | |
| total | Yes | Total bill including tip. | |
| per_person_tip | Yes | Each person's share of the tip. | |
| per_person_total | Yes | Each person's share of the total. |