Assuming a EV of around 4 (based on Fred Parkers Ultimate exposure calculator) ISO 100 film at f32 would need 1 minute, so a pinhole camera with a f stop of f256 would need approx 65 minutes,, to 240 min for f 500. That would be my starting point anyway.