And sometimes longer than 30 days.

If you sell a photo after the time period is up and the buyer bought it because he/she saw it at the gallery, one might consider writing a check to the gallery for 10% of the sales price. Depends on your relationship (and desire for a future relationship) with the gallery.