Formula Script is a simple scripting language designed specially for EspoCRM. It’s a tool that provides the ability to manipulate data and automatically perform operations.
Calculated fields
You can utilize Formula to automatically calculate field values. The pre-defined script will be executed every time before the record is saved. Aside from calculations, this feature can also perform certain additional actions. For example, you can create a script to add or remove some value from a field if certain conditions are met, or to convert date and time values according to system settings or to a specified time zone and format. With the help of calculated fields, businesses can save time spent on routine, time-consuming calculations and reduce the potential for human mistakes.

Documentation
Learn more about Formula in our documentation.