RGD Calculate GSTThis is a featured page

Use this function to calculate the value of tax (gst, vat) for a given amount.

The amount can include or exclude the tax amount, and the ex-tax amount is returned as well.

You can round the tax amount by specifying a rounding value, for example, to round to the nearest 5 cents pass 5 as the rounding value.

::Example::

amount = 11000 ;* dollar value of the amount to calculate the tax on, in cents (MD2)
type = "I" ;* does the amount include or exclude the tax (I for include, E for exclude)
taxRate = "10%" ;* the tax rate, can be passed as 10% or 10 or 0.01
rounding = 5 ;* round the tax amount to the nearest 5 cents.

taxAmount = rgd_calculate_GST(amount,type,taxRate,rounding,exTaxAmount)

* taxAmount will be set to 1000 (in cents MD2)
* exTaxAmount will be set to 10000 (in cents MD2)


source code attached below.



zapher67
zapher67
Latest page update: made by zapher67 , Feb 13 2008, 8:08 PM EST (about this update About This Update zapher67 Edited by zapher67

13 words added
4 words deleted

view changes

- complete history)
Keyword tags: calculate gst tax
More Info: links to this page
There are no threads for this page.  Be the first to start a new thread.
Unknown File rgd_calculate_GST.bas (Unknown File - 3k)
posted by zapher67   Feb 13 2008, 8:02 PM EST
basic+ source code version 1.00