The formula for the total has been added along with a comment.