#### Sample formulas using fields

The formula in this example uses the Xtreme database. To find out how many days it takes to ship the product from the date when the order was placed, you can just subtract the ship date database field from the order date database field:

    //A formula that uses database fields
    {Orders.Ship Date} - {Orders.Order Date}

To find the total dollar amount of a given product that was ordered, multiply its unit price by the quantity ordered:

`{Orders Detail.Unit Price} * {Orders Detail.Quantity}`

To calculate a sale price of 80 percent of the original unit price:

`{Orders Detail.Unit Price} * 0.80`

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com