User:Mornsta/HelperUseCalculator

Helper Use Calculator, used on Currency page. function calculate { var MANA = document.getElementById('MANA').value; var USERS = document.getElementById('USERS').value; var FRIENDS=(MANA-USERS*10)/(20-10); var NONFRIENDS=(USERS*20-MANA)/(20-10); document.getElementById("FRIENDS").innerHTML = Math.floor(FRIENDS); document.getElementById("NONFRIENDS").innerHTML = Math.floor(NONFRIENDS); }

 Mana  

 Users  

 Friends who used 

 Non-Friends who used 

 Calculate