what you say stands to reason and should work.
Another way is to compute a blended loan principal by counting month by month the amount owed and dividing it all by 12 to get an average amount outstanding., especially if you had a mortgage outstanding every month of the year. -- may be more beneficial