variable total and the math for it made