Login About Gallery
Sales Tax Calculator
SCRIPTING
‎Choose from Menu
SCRIPTING
‎Use Current Location
LOCATION
‎Get current weather at ‎Current Location
LOCATION
‎Get ‎Location ‎from ‎Weather Conditions
LOCATION
‎Get ‎ZIP Code ‎from ‎Location
VARIABLES
‎Set variable ‎ZipCode ‎to ‎Input
SCRIPTING
‎Enter Zip Code
SCRIPTING
‎Ask ‎Enter ZIP CODE you would like to calculate sales tax for:
Input Type
‎Number
Default Answer
‎0
SCRIPTING
‎Count ‎Characters ‎in ‎Input
SCRIPTING
‎If ‎Input ‎Condition
TEXT
‎0 ‎Ask for Input
VARIABLES
‎Set variable ‎ZipCode ‎to ‎Input
SCRIPTING
‎Otherwise
VARIABLES
‎Get ‎Ask for Input
VARIABLES
‎Set variable ‎ZipCode ‎to ‎Input
SCRIPTING
‎End If
SCRIPTING
‎End Menu
URL
‎http://www.salestaxstates.com/
NETWORK
‎Get contents of ‎URL
‎Options Under Construction
DOCUMENTS
‎Get text from ‎Input
TEXT
‎Split ‎Text ‎by ‎Custom ‎)
SCRIPTING
‎Count ‎Items ‎in ‎Input
SCRIPTING
‎If ‎Input ‎Condition
VARIABLES
‎Get ‎Split Text
SCRIPTING
‎Get ‎Item At Index ‎3.0 ‎from ‎List
SCRIPTING
‎Otherwise
SCRIPTING
‎Show alert ‎Cannot get tax information for zip code ‎ZipCode
Title
‎[{'value': 'Cannot get tax information for zip code ', 'class': 'text'}, {'class': 'magic', 'value': 'ZipCode', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]
Show Cancel Button
SCRIPTING
‎Exit shortcut with ‎Result
SCRIPTING
‎End If
TEXT
‎Split ‎Text ‎by ‎Custom ‎%
SCRIPTING
‎Get ‎First Item ‎from ‎List
VARIABLES
‎Set variable ‎StateTax ‎to ‎Input
VARIABLES
‎Get ‎Split Text
SCRIPTING
‎Get ‎Item At Index ‎4.0 ‎from ‎List
TEXT
‎Split ‎Text ‎by ‎Custom ‎%
SCRIPTING
‎Get ‎First Item ‎from ‎List
VARIABLES
‎Set variable ‎CityTax ‎to ‎Input
COMMENT
‎SPECIAL RATES
VARIABLES
‎Get ‎Split Text
SCRIPTING
‎Get ‎Item At Index ‎5.0 ‎from ‎List
SCRIPTING
‎If ‎Input ‎Condition
TEXT
‎Split ‎Text ‎by ‎Custom ‎%
SCRIPTING
‎Get ‎First Item ‎from ‎List
VARIABLES
‎Set variable ‎SpecialRate ‎to ‎Input
SCRIPTING
‎End If
COMMENT
‎END SPECIAL RATES
VARIABLES
‎Get ‎Text
TEXT
‎Split ‎Text ‎by ‎New Lines
SCRIPTING
‎Get ‎Item At Index ‎8.0 ‎from ‎List
TEXT
‎Split ‎Text ‎by ‎Custom ‎-
SCRIPTING
‎Get ‎First Item ‎from ‎List
VARIABLES
‎Set variable ‎State ‎to ‎Input
VARIABLES
‎Get ‎Split Text
SCRIPTING
‎Get ‎Item At Index ‎2.0 ‎from ‎List
VARIABLES
‎Set variable ‎City ‎to ‎Input
VARIABLES
‎Get ‎SpecialRate
SCRIPTING
‎If ‎Input ‎Condition
MATHS
‎Number ‎+ ‎StateTax
‎Options Under Construction
MATHS
‎Number ‎+ ‎CityTax
‎Options Under Construction
VARIABLES
‎Set variable ‎Combined ‎to ‎Input
SCRIPTING
‎Otherwise
VARIABLES
‎Get ‎StateTax
MATHS
‎Number ‎+ ‎CityTax
‎Options Under Construction
VARIABLES
‎Set variable ‎Combined ‎to ‎Input
SCRIPTING
‎End If
COMMENT
‎Use the following text statement to check individual tax rates if necessary.
TEXT
‎StateTax ‎state tax = ‎Combined ‎% ‎State ‎city tax = ‎SpecialRate ‎% (City imposed special rate = ‎City ‎%) Combined tax = ‎CityTax ‎%
COMMENT
‎Leave blank.
VARIABLES
‎Get ‎Combined
MATHS
‎Number ‎÷ ‎100.0
‎Options Under Construction
SCRIPTING
‎Ask ‎What is the sub total?
Input Type
‎Number
Default Answer
‎0
MATHS
‎Number ‎× ‎Percentage
‎Options Under Construction
‎Error Loading Action
VARIABLES
‎Set variable ‎TaxTotal ‎to ‎Input
MATHS
‎Number ‎+ ‎Sub Total
‎Options Under Construction
‎Error Loading Action
VARIABLES
‎Set variable ‎GrandTotal ‎to ‎Input
VARIABLES
‎Get ‎SpecialRate
SCRIPTING
‎If ‎Input ‎Condition
SCRIPTING
‎Show alert ‎Your total bill is $ ‎GrandTotal
Title
‎[{'value': 'Your total bill is $', 'class': 'text'}, {'class': 'magic', 'value': 'GrandTotal', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]
Show Cancel Button
SCRIPTING
‎Otherwise
SCRIPTING
‎Show alert ‎Your total bill is $ ‎GrandTotal
Title
‎[{'value': 'Your total bill is $', 'class': 'text'}, {'class': 'magic', 'value': 'GrandTotal', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]
Show Cancel Button
SCRIPTING
‎End If
VARIABLES
‎Get ‎GrandTotal
SHARING
‎Copy ‎Content ‎to clipboard
Local Only
Expire At
‎Today at 3 pm
COMMENT
‎@DigmasterFunk u/DigmasterFunk Huge thanks to: @VanishingTacos u/VanishingTacos For location services and number formatting.

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 4 years ago

This is an old shortcut, so some variables might be missing!

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0