calc


 

Price[0]['Value']; $price = (float) $liverate; $pricecarat = $price * $purity; $markupgram = $pricecarat * 0.10; $total = $grams * $pricecarat ; $totalmarkup = $markupgram * $grams; $finalprice = $total – $totalmarkup;echo ” live price= “. $liverate;echo ” carat= “. $purity;echo ” weight= “. $grams;echo ” total= “. $total;echo ” markup gram= “. $markupgram;echo ” total markup= “. $totalmarkup;echo ” total – markup= “. $finalprice;echo ” Your gold is worth”. $finalprice;} ?>