To avoid penalties, documentation must be prepared by the tax return filing deadline (usually 6 months after year-end).
It must provide a complete description of the transactions, functions performed, risks assumed, and the method used to determine arm's length pricing.