GST Calculator Australia

I has to write this function for my own project so I thought I should share. In no regards this should be treated as Primary GST calculator. You should always goto an expert for all your GST need i.e. Accountants etc.

BTW GST stands for Goods and Services Tax and this Tax was introduced into Australia in July 2000. A Tax rate of 10% applied to most goods and services. I guess there are many Items that are exempted as well to keep the cost of living down.

If you find any bug with this calculator please let me know

The javascript function are given below

Enter Amount for which GST is to be calculated
Initial amount: $
Calculation Results
Subtotal: $
GST: $
Total: $
  1. <script type="text/javascript">
  2. function gstplus() {
  3. var _iniamount = parseFloat(document.getElementById('amount').value);
  4. var _gst = parseFloat(_iniamount * 1.1) - _iniamount;
  5. _gst = Math.round(_gst*100)/100
  6. document.getElementById('gst').value = _gst;
  7. document.getElementById('subtotal').value = _iniamount;
  8. document.getElementById('totalincgst').value =Math.round((_iniamount+_gst)*100)/100;
  9. }
  10. function gstminus() {
  11. var _iniamount = parseFloat(document.getElementById('amount').value);
  12. var _gst = parseFloat(_iniamount / 11) ;
  13. _gst = Math.round(_gst*100)/100
  14. document.getElementById('gst').value = _gst;
  15. document.getElementById('subtotal').value = Math.round((_iniamount - _gst)*100)/100 ;
  16. document.getElementById('totalincgst').value =Math.round((_iniamount)*100)/100;
  17.  
  18. }
  19. </script>

 

If you have any doubts ask your accountant :)

 

Cheers

 

Search Terms:

Jaspreet Chahal

Self-confessed Max Payne and Howzat Cricket game addict. Big fan of Dharmendra, Keanu reeves & Lawrence "Larry" Page. I love my Wife, my son and bit of geeky stuff. I started falling in love with Blog'in last year. Writing is tending out to be fun. I write on situation I was in thus my post always travel around web development stuff. I hope you enjoy my posts.

More Posts - Website

Follow Me:
TwitterFacebookPinterestYouTube

Comments

  1. Kyl Murphy says:

    What I need to find is a calculator that gives you whole number solutions for pricing. i.e what is the price point closest to $160 where the gst inclusive price and the gst exclusive price are both whole numbers. We can use it to enter a number $4450 and find theclosest option to be working both in retail (inclsuive) and billing (exclusive) whole numbers. Have you seen such a thing? Tks

  2. Matthew says:

    You should give this a go with Knockout.js would be pretty cool. Going to do this with my GST Calculator but as with all developer never have enough time!

Speak Your Mind

*

CommentLuv badge