I don't know how to calculate the ideal Bahtinov mask for a particular lens, but in my experience, the filter-style Bahtinov masks (etched polycarbonate plastic, very dense line pattern) work much better for photographic lenses than the laser-cut lower-density line patterns that are typically used over telescope objectives.
Generally, for camera lenses, think "filter" instead of mask. Those from Kase, LonelySpeck, and the like, are great for photographic lens purposes. E.g.: Kase 100mm × 100mm Night focus tool (Bahtinov); Kase Wolverine circular Bahtinov 77mm; LonelySpeck Sharp Star 2.
For telescope optics, use the appropriate "mask" (occluding) style Bahtinov.