$collection = Mage::getModel('catalog/product')->getCollection();
$labor = 2;
$currentSilverPrice = getPriceFromMetalsApiFunction('silver');
foreach ($collection as $product) {
$newPrice = ($product->getWeight() * $currentSilverPrice) + ($product->getWeight() * $labor);
$product->setPrice($newPrice)->save();
}