create function

function to get the final budget