Tip and split-bill formulas
Tax is calculated from the subtotal. Tip uses the selected pre-tax or after-tax basis, and the final amount is divided equally when the party size is greater than one.
Tip = selected basis × tip rate; per person = (subtotal + tax + tip) ÷ party size
| Variable | Meaning | Unit or range |
|---|---|---|
| subtotal | Bill before tax and tip | currency |
| tip rate | User-selected gratuity percentage | % |
| party size | Number of equal shares | positive integer |
