Form Element library

Hello everyone,
It is possibile to do a mathmatical process by using form element library?
which means, if there are two vaules can I define a Number filed/ Text filed or …
in order to display their sum automaticlly?

Thank You,
Yazan