There’s already an idea regarding locking certain fields:
Option to make some fields mandatory for data integrity
As far as “formulas” go, there are no database formulas, the only thing that users can do for custom calculations is to use Custom Themes
which are now an Obsolete Feature
.
It’s good to know that Themes will remain available until an alternative is introduced.