tressaj,
To calculate total points and fees, you start with your total finance charges excluding interest, then add any fees paid to mortgage brokers, then add any fees that you normally exclude from the finance charge under section 226.4(c)(7) only if your bank will be receiving direct or indirect compensation or the fee is paid to the bank or an affiliate. (For example, if the customer pays an appraisal fee that was conducted by a bank employee or an affiliate of the bank you would include the cost of the fee in the calculation.) Next, if the customer obtains credit life insurance, you include the premiums in the calculation. Once you get the total of all the above you need to move to the next calculation.
You need to calculate the total loan amount. Start out with the amount financed on your Truth In Lending disclosure then subtract those fees that are normally excludable from the finance charge under section 226.4(c)(7) of Regulation Z but for which the bank will receive direct or indirect compensation or the fee will be paid to an affiliate only if such fees are financed. This means that the appraisal fee referred to above is only subtracted from the amount financed if the customer is financing it. If the customer paid it at the time of application, it does not get subtracted from the amount financed here. It would be included in the calculation for total points and fees. The result is the total loan amount. You then take your total points and fees and divide them into the total loan amount to see if the result exceeds the greater of $480 or 8% of the total loan amount.
Andy Z had provided a link in a post to an article on the FRB of Dallas' web site that gives a nice explanation of this. If you search the FDIC compliance manual you will find HOEPA worksheets based on the rule currently in effect. You would have to modify them to address the inclusion of credit insurance premiums and the changes to the APR test threshold based on lien position.