enables lineItem to calculate the total