Amounts due the permanent fund under AS 37.13.010
shall be calculated before the application of a credit extended under this chapter.