|SOLVED| multiplying and subtracting values on text fields.

I figured it out. Took a while but I did it. Code below now works on iPhone/Safari perfectly.

$w . onReady ( function () {
$w ( “#input247” ). onChange (( Event ) => {

**let**  price  =  Number ( $w ( '#input247' ). value ); 
**let**  traditionalPercent  =  Number  ( $w ( '#text556' ). text ); 
**let**  buyersAgentPercent  =  Number  ( $w ( '#text557' ). text ); 
 

$w ( "#input247" ). value  =  **null** ; 

$w ( '#text548' ). text  =  '$'  +  price . toLocaleString (); 
$w ( '#text549' ). text  =  '$'  + ( price  *  traditionalPercent ). toLocaleString (); 
$w ( '#text550' ). text  =  '$'  + ( price  *  buyersAgentPercent ). toLocaleString (); 
$w ( '#text551' ). text  =  '$'  + ( price  *  traditionalPercent  -  price  *  buyersAgentPercent ). toLocaleString (); 

})
});