Remaining Retainer on Invoice?

Remaining Retainer on Invoice?

Sorry if this has already been asked, but is there a way to add a line at the bottom of a client's invoice that shows their remaining retainer balance after money has been taken out to pay the invoice?  Would be useful for my clients.  Thanks for any and all help.