Really, I thought it was the actual f-stop that mattered.

My pinhole to film distance is 330 mm or 13 inches. Do you have a link to the formula you are talking about?