The dealer portion of the refund is calculated the following way:

(Customer refund) - (LGM portion).


For example: 

Customer refund: $500 

LGM portion: $100 

Dealer portion = $400