I have been getting help off htmlforums.com for this code thats being designed and i posted your reply and this is what the person helping me said Hi there Robertjones6 The calculation that you have given is exactly the same as the one given here... http://www.htmlforums.com/showpost.p...88&postcount=5 ....when calculating combat levels from Summoning and Prayer, truncate any remainder after dividing by 2. 97 Summoning would count for 12 combat levels, not 12.125, and only 98 Summoning would count for 12.25 combat levels. 97 Summoning and 97 Prayer would add together to give only 24 combat levels, but 96 Summoning and 98 Prayer would give 24.25 combat levels What do you mean by truncate? Javascript has Math.floor(), Math.ceil() and Math.round(), and also toFixed() can specify th number of decimal places. Sorry, but I cannot see the mathematical pattern that would give.. 96/8=12 97/8=12 98/8=12.25 What would be the values of... 85/8 60/8 53/8 ...for example? Can you elucidate for me? can you shed any light into how i should reply