calculating zoom using terrific formulas