Not included in these calculations (and should never be included in a royalty calculations as they are generally absorbed in the amounts retained by the publisher): editorial/overhead, distribution, storage, marketing, and any other costs, though there may be an exception for commissions or certain taxes.