Calculate Total Exercise
Followed along with the exercise. I hope this is satisfactory.