For example, I created at ticket level a new custom numeric field called "estimation" and each time a time entry is saved I want to check if the sum of all entries exceeds the "estimation" field.
If it does. Don't let you save the time entry.
If it has to be developed, can you gime me more info on how to do it? because in this case it is not a custom app.