Created function that will calculate the total balance. Created parameters and printed with console.log