Confused in which situations I'll need to pay royalties

I am still a bit confused on this. So when do we pay and how much??