Construction loan principal calculation

I have a home construction loan for personal use with a commitment from a bank of $1M. The interest payments are based on the amount dispersed as the home is being built, so it started off very low and gradually increased as we took out more to pay for the construction.  For purposes of calculating the average principal balance and the amount of interest I can deduct, is the principal balance the $1M committed loan amount or the average balance amount I had during the year?