@Catalin a sample code for reading values has been provided in phprad, the previous Ajax post solution you requested has a sample code for reading value from a field. You can also double click the sample codes on the left panel in ClientEvents.
$('the id of the field you want to read its value here').val();
then you can use it to do calculations.
Assigning value is as simple as below.
$('the id of the field you want to assign the value here').val('pass the value here');