Workflow 101: How to Calculate Tips Faster on Your iPhone

How to Calculate Tips Faster on Your iPhone

When it's time to calculate a tip at a restaurant or bar, I usually try some mental math at first, but sometimes I resort to opening the Calculator quickly from the Control Center on my iPhone and doing a quick calculation. But with Apple's Workflow app, there's an even easier way, and you don't even have to leave your lock screen to get the results.

Before you get knee deep into building your own iOS workflows on your iPhone, it's beneficial to learn how workflows work by using some that are already created and ready for you to use. A calculator for tips is one of the simplest premade workflows available, even though it looks complicated when you see the inner workings of it.

Step 1: Add the 'Calculate Tip' Workflow

Open up Workflow, tap on the "Gallery" tab, hit the search icon, then enter "tip."

Tap on "Calculate Tip," then "Get Workflow." Once it's downloaded, tap "Open" to jump right into your newly added workflow. You'll be able to find this workflow from the "My Workflows" tab on the app's homepage.

Step 2: Test Out How Well It Works

Tap the play button up top to see how it works. This will show a popup asking "What is the bill?" amount, so enter that and tap "OK." Then, select between 12%, 15%, 18%, or 20% on the next popup to see your tip amount as well as the new total amount. Tap "OK" to finish.

When satisfied, tap on the "Done" label up top, then exit the Workflow app.

Step 3: Add the Workflow Widget

There are two ways of adding a widget for Workflow to your Today View. First, you can just use 3D Touch on the Workflow app icon on your home screen, then tap "Add Widget" on the widget that appears. Second, you can swipe right from the first home screen page, lock screen, or notifications window, then tap on "Edit" at the bottom of the Today View page. Tap the "+" icon next to Workflow, then hit "Done."

Step 4: Calculate Tips Faster from the Lock Screen

Now, whenever you need to calculate the tip for a bill quickly, swipe right from the lock screen, then tap "Calculate Tip" in the Workflow widget. Tap "Show More" to expand the widget, then enter in the total bill amount, and tap "OK." Last, select the tip percentage you want to apply, then Workflow will show you the total tip amount as well as the new total bill amount with tip included.

Step 5: Calculate Tips Faster from the Home Screen

To access the same widget as above, you can swipe right from the first home screen page or when in the notifications window, then follow the directions above in Step 4 to use the widget in your Today View.

You can also access the tip calculator from the 3D Touch menu on the home screen. Just 3D Touch the Workflow app icon, then select "Calculate Tip." This will jump you right to the workflow in the app, similar to Step 2 above.

Alternatively, you can add a home screen shortcut to the calculator in the app. Head back to the "Calculate Tip" workflow either by using the 3D Touch shortcut above (then hit "Cancel") or from the "My Workflows" tab directly in the app. Now, either scroll all the way to the bottom of the workflow and tap "Add to Home Screen" or tap the cog icon up top, then "Add to Home Screen." This will open up a link to the shortcut in Safari, then you just add it to your home screen like any other webpage.

Step 6: Add Your Own Tip Amount

Now that you've had a chance to play around with the tip calculator as is, you can go back in and start playing around with the workflow. This one is a fairly basic workflow to learn from.

The first action box is "Ask for Input," which is simply the question that pops up ("What is the bill?) and the input type ("Number"). You don't need anything else.

The second action box, "Choose from Menu," is what the prompt will show you after entering the bill amount in the "What is the bill?" prompt. It will show the question "How much would you like to tip?"

If you want to add your own tip amount to select, tap "+ Add new item," then delete the text that's automatically inserted with the new tip percentage you want in the selection menu.

Below this action box, you'll see that each percentage line has its own line with its own action box underneath it. This is what is the multiplier will be to the original amount you enter. So, for tipping 18% of the bill, it would say 0.18 here so it knows what to multiple by later.

However, you'll notice that there is no action box underneath the new percentage you added. You'll have to add that yourself, so tap on the "Actions" tab at the bottom, then search for "Number" under Scripting.

Tap-and-hold on the dots to the right of it, then drag-and-drop it into place below the new percentage line. Then tap on the "Number" box you added, and insert your 0.XX multiplier, in my case, 0.22 for 22%, then hit "Done" above the keyboard.

Now, after the "Add Menu" line, you'll see the "Get Variable" action box. This is the amount you enter for the bill amount.

The next action box, "Calculate," selects multiplication for "PercentTipping" operand (the percentage you select from the prompt), and uses that to multiply the bill amount by the tipping percentage.

The action box after that, "Format Number," simply says to format the outcome with two decimal places (for cents).

After that, there's another "Calculate" action box to add the last calculated number to the "BillAmount" operand (the amount you enter for the bill amount).

The next action box, another "Format Number," does the same thing as before — formats the second calculated amount with two decimal places (for cents).

For the final action box, there's "Show Alert," which puts all of the above into a nice sentence saying, "Your tip is $TipAmount and your total is $TotalPrice." The $TipAmount part is the number returned after the first "Format Number" action box and $TotalPrice is the one after the second "Format Number" box.

Now, just tap on "Done" in the top right, and your new tipping amount will be saved. Use either Step 4 or Step 5 to put your new tipping amount into action on your iPhone.

Hopefully, this gave you an opportunity to learn a thing or two about editing workflows, which will help you when it comes time to make your own unique workflows. We'll continue to explore more premade workflows in other guides, as well as how to edit them to your liking, so check out our Workflow 101 collection.

Cover photo, screenshots, and GIFs by Justin Meyers/Gadget Hacks

Be the First to Comment

Share Your Thoughts

  • Hot
  • Latest