$${\frac{f + l}{D} = \frac{f}{d} \Rightarrow f = \frac{ld}{D-d}}$$