|UPDATE| |SOLVED| Code to multiply numbers and post results in the text fields

I’m getting $NaN on all values. Maybe I plugged something in wrong. See below.

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

    **const**  salesPrice  =  Math . trunc ( Number ( $w ( "#input247" ). value )) ; 
    **const**  stdCommission  =  Math . round ( salesPrice  *  0.06 ); 
    **const**  ourCommission  =  Math . round ( salesPrice  *  0.003 ); 
    **const**  savings  =  stdCommission  -  ourCommission ; 

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

    $w ( "#text548" ). text  =  '$'  +  salesPrice . toLocaleString (); 
    $w ( "#text549" ). text  =  '$'  +  stdCommission . toLocaleString (); 
    $w ( "#text550" ). text  =  '$'  +  ourCommission . toLocaleString (); 
    $w ( "#text551" ). text  =  '$'  +  savings . toLocaleString (); 

    })  

});