I'd start by computing the number of ships that went around the Southern tip of Africa as a result of the stuck ship. I wonder how much the cost of extra fuel and food/pay for all of those ships doing additional miles will be? And the resulting increase in wholesale/retail costs?
Regarding penalties re late delivery, I'm less worried about that. Cargo ships always have language about loss and force majeure. I think a stuck ship would qualify as force majeure. And a week shouldn't affect most perishables e.g. grain, that go into containers.