Hey @allyinspirit! I'm so glad you have access to an organic market.
From the research papers I could find there is no limiting factor to the length of time after harvest that the mushrooms stop producing vitamin D.
In most of the studies the maximum time was 4 days after harvesting. But I'm sure it wouldn't do any harm to leave them out anyway.
All the best! Thank you so much for your support :)