var i=((role-0)*0.6)+((($('#toa2').val()-0)+($('#toa3').val()-0))*0.4); $(meanscore).html(i.toFixed(2));