TBI Oil Price Converter Tool
This simple tool is designed to help calculate price
per metric ton pricing information for virgin
soybean oil (Canola or Sunflower) to a price per gallon value.
It assumes 7.5 pounds per gallon for virgin soybean oil.
if ( $_POST[Submit] > "" ) {
$MT=2204.6; # pounds per metric ton
$SVO=7.5; # pounds per gallon
$nummt = strip_tags($_POST[nummt]);
$price = strip_tags($_POST[price]);
$ppp = number_format(($price / $MT),3);
$ptot = number_format($price * $nummt,2);
$gtot = number_format(round( ($MT / $SVO) * $nummt,1));
$ppg = number_format( ($price / $gtot) * $nummt,2);
echo "