AnsweredAssumed Answered

Result of calculation

Question asked by Kirk_1 on Nov 30, 2012
Latest reply on Nov 30, 2012 by philmodjunk

Title

Result of calculation

Post

     This statement evaluates to 332.42, i can' see why...

     $Discount_pct_cust = 61.8

     $toplinenumber1 = 267.41

     $fsc = 24.3

      

      

     100-61.8= 38.2     38.2*267.41=10215.06     10215.06/100= 102.15

     102.15*24.3=2482.24        2482.24/100= 24.82   

     102.15+24.82=126.97

      

      

     Let ([

         ~num =  ( 100 - $discount_pct_cust ) * ( $toplinenumber1 / 100 )  ;

         ~fsc = ( ~num * $fsc / 100 ) ;

         ~newRate = Round ( ~num + ~fsc ; 2 )

     ] ;
         ~newrate
     )

Outcomes