![](https://media.stonly.com/media/images/50909e9e-881f-4a2e-a430-8da55b3dc152.png?s=25fc09d9eeba200ae27c52affe1edc2ab906656a14e7ff59485ef098bc8877f3fc2ac1bc195bd1b881c13bb91b1a53db397254ab4d3ec15442d89b08ece016eddd619b08710e716b22d7d63bac10c7baeac80d49c7e281ed39c959af23aeffadcb37109cf336b38e539bd72e638656cd&w=1280&h=1440&auto=format)
What is a formula?
Plecto formulas are logical expressions similar to those in Excel or Google Sheets. They calculate your data, such as the value of sales, the number of calls, month-to-date targets, and more.
On their own, formulas are not limited by specific time periods. The time period becomes relevant only when a formula is added to a widget.
All formulas are created in a formula editor. You can open the formula editor in Formulas > + New formula or from widgets on dashboards and reports.
Default date
When calculating your data, formulas look at your data source's default date field. Say you created 5 registrations today but updated 20 – the default date helps Plecto understand which number to show.
![](https://media.stonly.com/media/images/50909e9e-881f-4a2e-a430-8da55b3dc152.png?s=25fc09d9eeba200ae27c52affe1edc2ab906656a14e7ff59485ef098bc8877f3fc2ac1bc195bd1b881c13bb91b1a53db397254ab4d3ec15442d89b08ece016eddd619b08710e716b22d7d63bac10c7baeac80d49c7e281ed39c959af23aeffadcb37109cf336b38e539bd72e638656cd&w=1280&h=1440&auto=format)
What is a KPI?
In Plecto, a Key Performance Indicator or KPI is a combination of formula + widget + time period.
Unlike formulas, KPIs are bound to specific time periods.
For example, say you have a formula that counts the number of calls from a data source. You can use this formula to see the KPI for today, another KPI for the current month, a third one this month filtered by teams or employees, and so on.