1587. Interest or income yielded from the date of deposit belongs to the creditor. Nevertheless, where the deposit is made to obtain the performance of an obligation of the creditor that is correlative to the obligation the debtor intends to perform by the deposit, the interest or income belongs to the debtor until the deposit is accepted by the creditor.