LORIKEET
calculate_gstAdd GST to a GST-exclusive amount, or extract the GST from a GST-inclusive amount, in exact integer cents. GST in an inclusive price is one ELEVENTH, not one tenth. "basis" is required — "exclusive" adds, "inclusive" extracts (synonyms accepted); an unknown basis throws rather than returning a wrong figure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basis | Yes | Whether the amount already includes GST. | |
| amount | Yes | The money amount, e.g. "110.00". At most two decimal places. |