The advance is automatically recouped through the earnings from the releases covered in your agreement, until the full amount has been repaid.
The duration depends on the deal structure you choose and can be influenced by you.
There is no manual repayment - everything is handled automatically through your earnings.