Login About Gallery
Sales Tax Calculator
SCRIPTING
Choose from Menu
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
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
VARIABLES
Set variable
ZipCode
to
Input
Otherwise
VARIABLES
VARIABLES
Set variable
ZipCode
to
Input
End If
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
SCRIPTING
Get
Item At Index
3.0
from
List
Otherwise
SCRIPTING
Show alert
Cannot get tax information for zip code
ZipCode
Title
Cannot get tax information for zip code
ZipCode
Show Cancel Button
SCRIPTING
Exit shortcut with
Result
End If
TEXT
Split
Text
by
Custom
%
SCRIPTING
Get
First Item
from
List
VARIABLES
Set variable
StateTax
to
Input
VARIABLES
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
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
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
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
Otherwise
VARIABLES
Get
StateTax
MATHS
Number
+
CityTax
Options Under Construction
VARIABLES
Set variable
Combined
to
Input
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
Your total bill is $
GrandTotal
Show Cancel Button
Otherwise
SCRIPTING
Show alert
Your total bill is $
GrandTotal
Title
Your total bill is $
GrandTotal
Show Cancel Button
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 3 years ago

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

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0