Jason Burk

Shortcuts Ep. 6

Siri Shortcuts - Episode 6

Shortcut Name: Happy Level Tip Calculator
Revision: 1.0

What does it do?
This Shortcut is a handy tip calculator that allows you to choose a tip amount based on how you felt about the service, and then let’s you also split the check if necessary. It all runs from within the Shortcut Widget in the Today View, so it’s super fast and convenient!

How does it work?

  1. Ask for input regarding the amount of the meal check and set to variable meal.
  2. Choose how the experience made you feel:
    • 😃 Great! (20% tip)
    • 😐 Meh. (15% tip)
    • ☹️ Not Good. (8% tip)
      Set selection to variable tip_select.
  3. Calculate tip amount: meal x tip_select. Set variable tip.
  4. Calculate total: meal+tip, and round amount. Set variable total.
  5. Prompt if check should be split between multiple people, and how many people. Set the number of people to variable party.
  6. Calculate split amount: total / party and set variable to total_split. Show amount for each person in result.
  7. If check is not to be split, the total amount is shown.

“Source Code”
Shortcut  Episode 6  Code

Find Other Episodes Here

⬅️ An IndieWebring ➡️