function IBUTG() {
$tt = $('[name=tempo_trabalho]');
$vt = $('[name=valor_ibutg_trabalho]');
$td = $('[name=tempo_descanso]');
$vd = $('[name=valor_ibutg_descanso]');
$ibutg = (($tt * $vt) + ($td * $vd)) / 60;
$('[name=ibutg_calculado]').val($ibutg);
}
I'm getting NaN while performing this function, what can it be? The values of the inputs are in the format 99.9