Make sure all your calculations are in either lines per millimeter or line-pairs per millimeter.