Create variable total

Create variable total