My code for the fetching of the two values is fine, and the subtracting those values are also fine. The problem is that some values that are going to subtract has comma's(,) and it will echo a wrong answer.
My Code:
<?php
$a = $value['stall_rate'];
$b = $value['payment'];
$result = $a - $b;
echo $result;
?>