# Source: https://mikro-orm.io/api/core/function/Formula.md

# Formula<!-- -->

### Callable

* ****Formula**\<T>(formula, options): (target, propertyName) => any

***

* #### Parameters

  * ##### formula: string | (alias) => string
  *
    ##### options: [FormulaOptions](https://mikro-orm.io/api/core/interface/FormulaOptions.md)\<T> = <!-- -->{}

  #### Returns (target, propertyName) => any

  * * **(target, propertyName): any

    - #### Parameters

      * ##### target: Partial\<any>
      * ##### propertyName: string

      #### Returns any