Note you are getting the element using the ID, but you are not getting the value.
Try ...


function calculateBudget()
{
var totalBudget = document.getElementById('TotalBudget').value;
var...