Earning line items in End of service calculation

How to Include and exclude earning line items in End of service calculation ?