Populate data field

Populate data field

Hi,

How can you do that when you select a dropdown and a number is typed into a text field will auto fill other field and the final amount has to be half the user write.

Dropdown field name: Tipo_de_Prestamo

Data field with the amount : Prima

Data field to populate: Comision