By "max out" I'll assume you mean fully maxed, and if so that information hasn't been updated in the wiki yet. If you meant enough to unlock the shop then the wiki will show that, otherwise you can easily get the information in-game from the Affinity interface (press J and scroll down to Affinity).
Also, the amount you get from donation items is also shown there, and assuming you use an Affinity Booster when donating, you just multiply the amount you get per item by 2, turning 300 into 600. Or if you have guild passive maxed on top of that, then you multiply by 2.1 instead of by 2, turning 300 into 630.
Knowing this you just open the calculator in Windows and do the very basic math needed :
your affinity goal / amount per item = items needed to reach goal