Question:  If there is a HECS debt repayment, it seems to add this to the amount of the refund due?

Answer: This is correct. HECS repayment is added to total payable refundable. In this case $510.87 less $1292.35 less $1526 = $-2307.48.