The value of a supply of goods or services or both shall be the transaction value, which is the price actually paid or payable for the said supply of goods or services or both where the supplier and the recipient of the supply are not related and the price is the sole consideration for the supply.
GST is charged on the taxable value, which does not include the GST itself. For a price that includes GST, the calculator works the taxable value back out of the price.
View official source