set total for calculation