Customization → Attributes Setup → Attributes → Calculation Editor → MathML Examples → Comparing Dates in a List Attribute
<?xml version="1.0" encoding="utf-16"?>
<Calculation>
   <Expression>
      <math xmlns:mathml="http://www.w3.org/1998/Math/MathML">
         <lambda>
            <bvar>
               <ci>x</ci>
               <ci>y</ci>
            </bvar>
            <piecewise>
               <piece>
                  <ci>z1</ci>
                  <apply>
                     <gt></gt>
                     <apply>
                        <minus></minus>
                        <ci>x</ci>
                        <ci>y</ci>
                     </apply>
                     <cn>30</cn>
                  </apply>
               </piece>
               <piece>
                  <ci>z2</ci>
                  <apply>
                     <gt></gt>
                     <apply>
                        <minus></minus>
                        <ci>x</ci>
                        <ci>y</ci>
                     </apply>
                     <cn>0</cn>
                  </apply>
               </piece>
               <otherwise>
                  <ci>z3</ci>
               </otherwise>
            </piecewise>
         </lambda>
      </math>
   </Expression>
   <RHSVariable name="StartMS.Actual" identifier="x"></RHSVariable>
   <RHSVariable name="StartMS.Plan" identifier="y"></RHSVariable>
   <RHSVariable name="%ListItem%Status.Red%" identifier="z1"></RHSVariable>
   <RHSVariable name="%ListItem%Status.Yellow%" identifier="z2"></RHSVariable>
   <RHSVariable name="%ListItem%Status.Green%" identifier="z3"></RHSVariable>
</Calculation>
Copyright © 2003–2011 Serena Software, Inc. All rights reserved.