$('.translate').each(function(){
var amount = $('.number').html();
var cost = $('.price').html();
var res = amount ? cost / amount : 0;
$(".price-one").text('$' + res.toFixed(0));
});
$('tr', '.translate').each(function(){
var number = $('.number', $(this)),
price = $('.price', $(this)),
total = $('.price-one', $(this)),
amount = number.length ? parseInt(number.html().replace(/\D/g, '')) : 0,
cost = price.length ? parseInt(price.html().replace(/\D/g, '')) : 0,
res = amount ? cost / amount : 0;
(total.length) && total.text('$' + res.toFixed(0));
});