Your deduction is the lesser of:
a. your tax basis for the donated food (generally, your cost) plus one‐half
of the profit margin (fair market value minus the tax basis), or
b. twice your tax basis.
Fair market value is your normal selling price—what you charge for food of
the same type and quality. The food must be “apparently wholesome.