Interest rate deposit&borrow

Hi, i would like to understand better how the interest rate formula works. Can someone explain me. thanks :slight_smile: