SPFieldCalculated.Formula property
SharePoint 2013
Gets or sets the formula that is used for calculation in the field.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Formulas are in the format of Microsoft Excel, but there are some limitations on the functions you can use and some subtleties in the syntax. Before using this property consult Calculated Field Formulas.