function recount() { var revenue = String((client + check + time) * tarif).replace(/(\d)(?=(\d{3})+(\D|$))/g, '$1 '); result_outptut.html(revenue + ' руб/мес'); };