Can anyone tell me where the money goes to during inter-bank transfers.

I transfer money from my bank, and it is taken off my bank balance - but it takes a whole day (and sometimes longer) to show in the beneficiaries bank balance. Where does that money go to for the waiting period and what kind of interest must all those multi-millions be making?