Do royalty payments take into account returns?

I’m trying to calculate how much we owe and was wondering if it takes into account returns into the payment as obviously as the publisher we never see any of that money. Thanks in advance for helping me out!