Wolfram Computation Meets Knowledge

Tip Calculation

A tip is a sum of money customarily given by a client or customer to a service worker, in addition to the basic price.

The tip amount equals the tip percentage times the amount without the tip. The amount with tip equals the amount of the tip plus the amount without the tip.

Formula

{QuantityVariable["T", "Money"] == QuantityVariable["B", "Money"]*QuantityVariable["P", "Unitless"], QuantityVariable["BT", "Money"] == QuantityVariable["B", "Money"] + QuantityVariable["T", "Money"], QuantityVariable["BP", "MoneyPerPerson"] == QuantityVariable["BT", "Money"]/QuantityVariable["n", "Person"]}

symbol description physical quantity
T amount of tip "Money"
B amount without tip "Money"
P tip percentage "Unitless"
BT amount with tip "Money"
BP amount per person "MoneyPerPerson"
n number of people "Person"

Forms

Examples

Get the resource:

In[1]:=
ResourceObject["Tip Calculation"]
Out[1]=

Get the formula:

In[2]:=
FormulaData[ResourceObject["Tip Calculation"]]
Out[2]=

Use some values:

In[3]:=
FormulaData[
 ResourceObject[
  "Tip Calculation"], {QuantityVariable["n","Person"] -> 2}]
Out[3]=

Publisher Information