# Profit ( Cost ; Price )

Returns the profit margin between cost and price

Average rating: 4.3 (26 votes) Log in to vote

Ibrahim Bittar Torres - Show more from this author
Eikonsys, S.A. de C.V. http://www.eikonsys.com |

Profit ( 125 , 100 )

Profit ( 125 , 0 )

-25 (25% loss)

-100 (100% loss)

Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function returns the percent difference between two numbers. In this case if you compare cost vs. price then you get the profit margin.

This function requires two parameters: Cost and Price.

If the selling price is less than the cost then the result is negative, showing a loss.

If the price is 0 then the profit is -100 indicating a 100% loss, regardless of the cost.

## Comments

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.