Calculate Depth Of Focus