Coded teaTotal

Coded the function call