Hi everyone,

I've been trying a calculation for a website and thanks to user "simplypixie" i've solved my problem.
But i have a new problem. This javascript code does not function in Wordpress. Here is the code;

---------------
<html>
<body
<p> Sayı Yazın </p>
<p><input id="sayi" type="text"></p>
<p>Sınıfını Belirleyin</p>
<form>
<input type="radio" name="sinif" id="az" value="az"> Az
<br>
<input type="radio" name="sinif" id="normal" value="normal"> Normal
<br>
<input type="radio" name="sinif" id="cok" value="cok"> Çok
</form>
<button type="button" onclick="saatbul()">Hesapla</button>
<p id="sure"></p>
<script>
function saatbul()
{
var x=document.getElementById("sayi").value;
var y;

if (document.getElementById('az').checked)
{
y=x*0.5;
}
else if (document.getElementById('normal').checked)
{
y=x*0.75;
}
else
{
y=x*0.95;
}
document.getElementById("sure").innerHTML=y + ;
}
</script>
</body>
</html>
----------------
Could you help me about that?