FORM 8815 Line 2

Expenses to exclude from form 8815 line 2. Specifically the amount “ used to figure the nontaxable amount of a distribution from a Coverdale ESA or QTP”. How do I calculate or find that?