Mary, you've certainly used the right formula ie focal length=f stop multiplied by lens aperture (in this case pinhole diameter, 0.4mm).
that is, 160=400 times 0.4. As said there is no focus, but there is a best distance for optimum quality and film coverage.
In practice it was a little shorter, around135mm, because I used a lens to look at composition on the Linhof ground glass screen. Then just substituted a pinhole lens panel, and slipped in a film holder. Then sat back with a glass of mulled wine...you can't see the wine glass, it had too much movement!
I used a a soft drink (soda) can aluminium, and punched a hole with a dressmakers needle, blackened hole with felt pen. Look you can do this stuff with a shoe box. The ambient original light reading was F8@1/15 sec, 100 iso film, very flat day. Did the time calculations from there..as said 8 minutes!
The Holgas, and Lomos are out there, but a sh...load more fun doing it yourself from first principles.