Friend , i need to calculate Avg Unit Cost from the fields unit and price how i get result for it.
Hmm.. i remember learning Averages in 4th class or was it third.
$avg = $current/$unit;