The advance is automatically recouped through the earnings from the releases covered in your agreement, until the full amount has been repaid.
That means:
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