UML uses OCL to express constraints. /profit is the derived attibute. Derivation formula is shown at the bottom of the class diagram. Derived attributes are always calculated and never read from previously stored values.
/profit