CalculatedColumn Process

Set calculated column together with its meta

namehour_rateworking_hours
John $20/hrs 123 hrs
Marry $30/hrs 112 hrs
Peter $25/hrs 132 hrs
Donald $40/hrs 89 hrs

->pipe(new CalculatedColumn(array(
    "total_meta"=>array(
        "exp"=>"{hour_rate}*{working_hours}",
        "type"=>"number",
        "decimals" => 4,
        "prefix"=>'$'
    )
)))
namehour_rateworking_hourstotal_meta
John $20/hrs 123 hrs $2,460.0000
Marry $30/hrs 112 hrs $3,360.0000
Peter $25/hrs 132 hrs $3,300.0000
Donald $40/hrs 89 hrs $3,560.0000
Description