Minor correction to total calculation