How can I add logic inside the kirby panel?

Dear kirby community
I am working on a web catalogue, which displays the estimated price of jewelry. The estimated price is calculated using several price factors (e.g. gold price * weight * working time) which a stored in article txt file. I solved the logic for the frontend with a php calculation. Is there a way to calculate multiple input fields live in the panel and display the result there?
As the calculation is not very complex, I would not have to use my PHP function directly

Thank you very much for your input. This community is a great help.

You can display the result of a calculation in the Panel, but not as live result while you are typing, unless you create a custom field.