Código PHP:
<script>
function calcula(){
var win = document.lala.wins.value
var lose = document.lala.loses.value
var total = win + lose
var percent = win/total*100
document.lala.percent.value = percent
}
</script>
gracias x su ayudaaa