Fix product cost calculation